-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
75 additions
and
11 deletions.
There are no files selected for viewing
Empty file.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import re | ||
|
||
from pathlib import Path | ||
from setuptools import setup, find_packages | ||
|
||
with open("README.md") as readme: | ||
long_description = readme.read() | ||
|
||
|
||
def get_version(): | ||
"""Get version number from __init__.py""" | ||
version_file = Path(__file__).resolve().parent / "synthaser" / "__init__.py" | ||
version_match = re.search( | ||
r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read_text(), re.M | ||
) | ||
if version_match: | ||
return version_match.group(1) | ||
raise RuntimeError("Failed to find version string") | ||
|
||
|
||
setup( | ||
name="clinker", | ||
author="Cameron Gilchrist", | ||
version=get_version(), | ||
description="", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/gamcil/clinker", | ||
packages=find_packages(), | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
], | ||
install_requires=["genome2json"], | ||
python_requires=">=3.6", | ||
entry_points={"console_scripts": ["synthaser=clinker.main:main"]}, | ||
include_package_data=True, | ||
) |