long_description = readmeFile.read() install_requires = [] with open("python/requirements.txt") as requirementsFile: for line in requirementsFile: line = line.strip() if len(line) == 0: continue if line[0] == '#': continue pinnedVersion = line.split()[0] install_requires.append(pinnedVersion) schemasPath = 'src/main/proto/' process_schemas.createSchemaFiles('python', schemasPath) process_schemas.main([PROTOCOL_VERSION, 'python']) setup( name="ga4gh_schemas", description="GA4GH API Schemas", packages=[ "ga4gh", "ga4gh.schemas", "ga4gh.schemas.ga4gh", "ga4gh.schemas.google", "ga4gh.schemas.google.api" ], namespace_packages=["ga4gh"], url="https://github.com/ga4gh/schemas", use_scm_version={"write_to": "python/ga4gh/schemas/_version.py"}, entry_points={},
dependency_links = [] try: with open("python/constraints.txt") as constraintsFile: for line in constraintsFile: line = line.strip() if len(line) == 0: continue if line[0] == '#': continue dependency_links.append(line) except EnvironmentError: print('No constraints file found, proceeding without ' 'creating dependency links.') try: process_schemas.main([PROTOCOL_VERSION]) except Exception: print("Couldn't find a good protoc, using precompiled protobuf.") setup( name="candig_schemas", description="CanDIG API Schemas", packages=[ "candig", "candig.schemas", "candig.schemas.candig", "candig.schemas.google", "candig.schemas.google.api" ], namespace_packages=["candig"], url="https://github.com/candig/candig-schemas", use_scm_version={"write_to": "python/candig/schemas/_version.py"}, entry_points={}, package_dir={'': 'python'},
long_description = readmeFile.read() install_requires = [] with open("python/requirements.txt") as requirementsFile: for line in requirementsFile: line = line.strip() if len(line) == 0: continue if line[0] == "#": continue pinnedVersion = line.split()[0] install_requires.append(pinnedVersion) schemasPath = "src/main/proto/" process_schemas.createSchemaFiles("python", schemasPath) process_schemas.main([PROTOCOL_VERSION, "python"]) setup( name="ga4gh_schemas", description="GA4GH API Schemas", packages=["ga4gh", "ga4gh.schemas", "ga4gh.schemas.ga4gh", "ga4gh.schemas.google", "ga4gh.schemas.google.api"], namespace_packages=["ga4gh"], url="https://github.com/ga4gh/schemas", use_scm_version={"write_to": "python/ga4gh/schemas/_version.py"}, entry_points={}, package_dir={"": "python"}, long_description=long_description, install_requires=install_requires, license="Apache License 2.0", include_package_data=True, zip_safe=True,
dependency_links = [] try: with open("python/constraints.txt") as constraintsFile: for line in constraintsFile: line = line.strip() if len(line) == 0: continue if line[0] == '#': continue dependency_links.append(line) except EnvironmentError: print('No constraints file found, proceeding without ' 'creating dependency links.') try: process_schemas.main([PROTOCOL_VERSION]) except Exception: print("Couldn't find a good protoc, using precompiled protobuf.") setup( name="ga4gh_schemas", description="GA4GH API Schemas", packages=[ "ga4gh", "ga4gh.schemas", "ga4gh.schemas.ga4gh", "ga4gh.schemas.google", "ga4gh.schemas.google.api" ], namespace_packages=["ga4gh"], url="https://github.com/ga4gh/schemas",
pom_loc = '../pom.xml' def get_version_from_pom(): tree = ET.parse(pom_loc) root = tree.getroot() for child in root: if 'version' in child.tag: print("version is: " + child.text) return child.text SCHEMA_VERSION = get_version_from_pom() try: process_schemas.main([SCHEMA_VERSION]) except Exception as e: print("Error occured: {}".format(e)) # print("Couldn't find a good protoc, using precompiled protobuf.") def run(): """ Run the setup program """ here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open_(path.join(here, 'docs/index.rst'), encoding='utf-8') as file_: long_description = file_.read()