-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to setup via setup.cfg instead of setup.py (#25)
* Move to setup via setup.cfg instead of setup.py * Delete unnecessary files, adapt README * adapt test
- Loading branch information
Showing
8 changed files
with
66 additions
and
67 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"""rxnmapper initialization.""" | ||
__name__ = "rxnmapper" | ||
__version__ = "0.1.0" | ||
__version__ = "0.1.4" | ||
|
||
from .core import RXNMapper # noqa |
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 |
---|---|---|
@@ -1,6 +1,49 @@ | ||
# Inside of setup.cfg | ||
[metadata] | ||
description-file = README.md | ||
name = rxnmapper | ||
version = attr: rxnmapper.__version__ | ||
description = Reaction atom-mapping from transfomers | ||
author = IBM RXN team | ||
author_email = [email protected] | ||
license = MIT | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
classifiers = | ||
Operating System :: OS Independent | ||
Intended Audience :: Developers | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: MIT License | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
url = https://github.com/rxn4chemistry/rxnmapper | ||
|
||
[options] | ||
packages = find: | ||
python_requires = >= 3.6 | ||
zip_safe = False | ||
include_package_data = True | ||
install_requires = | ||
pandas>=1.0.3 | ||
rxn-chem-utils>=1.0.3 | ||
scipy==1.4.1 | ||
torch==1.5.0 | ||
transformers==4.0.0 | ||
|
||
[options.package_data] | ||
rxnmapper = | ||
models/transformers/albert_heads_8_uspto_all_1310k/* | ||
|
||
[options.extras_require] | ||
dev = | ||
black>=22.1.0 | ||
bump2version>=1.0.1 | ||
flake8>=3.7.9 | ||
isort>=5.10.0 | ||
pytest>=5.4.1 | ||
sphinx-rtd-theme==0.4.3 | ||
sphinx==2.2.1 | ||
twine==3.1.1 | ||
|
||
[flake8] | ||
extend-ignore = E203, E501 |
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 |
---|---|---|
@@ -1,41 +1,5 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
from setuptools import setup | ||
|
||
from setuptools import find_packages, setup | ||
|
||
if os.path.exists("README.md"): | ||
long_description = open("README.md").read() | ||
else: | ||
long_description = """Reaction atom-mapping from transfomers""" | ||
|
||
setup( | ||
name="rxnmapper", | ||
version="0.1.4", | ||
author="RXNMapper team", | ||
author_email="[email protected], [email protected]", | ||
py_modules=["rxnmapper"], | ||
description="Reaction atom-mapping from transfomers", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
license="MIT", | ||
install_requires=[ | ||
"transformers==4.0.0", | ||
"torch==1.5.0", | ||
"scipy==1.4.1", | ||
"rxn-chem-utils>=1.0.3", | ||
], | ||
packages=find_packages(), | ||
package_data={ | ||
"rxnmapper": ["models/transformers/albert_heads_8_uspto_all_1310k/*"] | ||
}, | ||
url="https://github.com/rxn4chemistry/rxnmapper", | ||
classifiers=[ | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
) | ||
setup() |