mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-23 03:50:30 +03:00
Merge remote-tracking branch 'origin/Fix-missing-schemas'
This commit is contained in:
commit
8be514fce5
@ -14,7 +14,7 @@
|
||||
"supplyLevel": "Low",
|
||||
"sellPrice": 1138,
|
||||
"demand": 42,
|
||||
"demandLevel": "Med"
|
||||
"demandLevel": "Med",
|
||||
"timestamp": "2014-11-17T12:34:56+00:00"
|
||||
}
|
||||
}
|
@ -8,7 +8,7 @@
|
||||
"message": {
|
||||
"systemName": "Eranin",
|
||||
"stationName": "Azeban Orbital",
|
||||
"timestamp": "2014-11-17T12:34:56+00:00"
|
||||
"timestamp": "2014-11-17T12:34:56+00:00",
|
||||
"commodities": [
|
||||
{
|
||||
"name": "Gold",
|
||||
|
8
setup.py
8
setup.py
@ -1,13 +1,14 @@
|
||||
from setuptools import setup, find_packages
|
||||
import re
|
||||
import glob
|
||||
|
||||
|
||||
VERSIONFILE = "src/eddn/_version.py"
|
||||
verstr = "unknown"
|
||||
verstr = "unknown"
|
||||
try:
|
||||
verstrline = open(VERSIONFILE, "rt").read()
|
||||
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
|
||||
mo = re.search(VSRE, verstrline, re.M)
|
||||
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
|
||||
mo = re.search(VSRE, verstrline, re.M)
|
||||
if mo:
|
||||
verstr = mo.group(1)
|
||||
except EnvironmentError:
|
||||
@ -24,6 +25,7 @@ setup(
|
||||
url='https://github.com/jamesremuscat/eddn',
|
||||
packages=find_packages('src', exclude=["*.tests"]),
|
||||
package_dir = {'':'src'},
|
||||
data_files=[('eddn/schemas', glob.glob("schemas/*.json"))],
|
||||
long_description="""\
|
||||
The Elite: Dangerous Data Network allows E:D players to share data. Not affiliated with Frontier Developments.
|
||||
""",
|
||||
|
@ -10,7 +10,10 @@ import urlparse
|
||||
import zlib
|
||||
import zmq.green as zmq
|
||||
from datetime import datetime
|
||||
from eddn.conf.Settings import Settings, loadConfig
|
||||
|
||||
import os
|
||||
|
||||
from eddn._Conf.Settings import Settings, loadConfig
|
||||
from eddn.Validator import Validator, ValidationSeverity
|
||||
|
||||
from gevent import monkey
|
||||
@ -39,7 +42,8 @@ def configure():
|
||||
sender.bind(binding)
|
||||
|
||||
for schemaRef, schemaFile in Settings.GATEWAY_JSON_SCHEMAS.iteritems():
|
||||
validator.addSchemaResource(schemaRef, schemaFile)
|
||||
#filename = resource_filename(Requirement.parse("eddn"), schemaFile)
|
||||
validator.addSchemaResource(schemaRef, os.path.dirname(__file__) + '/' + schemaFile)
|
||||
|
||||
|
||||
def push_message(string_message):
|
||||
|
Loading…
x
Reference in New Issue
Block a user