Skip to content

Commit

Permalink
Fixing setup.py requirements for PyPi and updating version to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
swansonk14 committed Jul 25, 2020
1 parent 8446d34 commit 4c8a77e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 27 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Then proceed to either option below to complete the installation. Note that on m

### Option 1: Installing from PyPi

1. `conda env create -n chemprop python=3.8`
1. `conda create -n chemprop python=3.8`
2. `conda activate chemprop`
3. `conda install -c conda-forge rdkit`
4. `pip install chemprop`
Expand Down Expand Up @@ -85,9 +85,9 @@ Note that you will need to run the latter command with nvidia-docker if you are

For those less familiar with the command line, Chemprop also includes a web interface which allows for basic training and predicting. An example of the website (in demo mode with training disabled) is available here: [chemprop.csail.mit.edu](chemprop.csail.mit.edu).

![Training with our web interface](chemprop/web/app/static/images/web_train.png "Training with our web interface")
![Training with our web interface](https://github.com/chemprop/chemprop/raw/master/chemprop/web/app/static/images/web_train.png "Training with our web interface")

![Predicting with our web interface](chemprop/web/app/static/images/web_predict.png "Predicting with our web interface")
![Predicting with our web interface](https://github.com/chemprop/chemprop/raw/master/chemprop/web/app/static/images/web_predict.png "Predicting with our web interface")

You can start the web interface on your local machine in two ways. Flask is used for development mode while gunicorn is used for production mode.

Expand Down
2 changes: 1 addition & 1 deletion chemprop/_version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__all__ = ['__version__']

# major, minor, patch
version_info = 1, 0, 0
version_info = 1, 0, 1

# Nice string for the version
__version__ = '.'.join(map(str, version_info))
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Kyle Swanson, Kevin Yang, Wengong Jin, Lior Hirschfeld, Allison Tam'

# The full version, including alpha/beta/rc tags
release = '1.0.0'
release = '1.0.1'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Then proceed to either option below to complete the installation. Note that on m
Option 1: Installing from PyPi
------------------------------

1. :code:`conda env create -n chemprop python=3.7`
1. :code:`conda create -n chemprop python=3.8`
2. :code:`conda activate chemprop`
3. :code:`conda install -c conda-forge rdkit`
4. :code:`pip install chemprop`
Expand Down
15 changes: 0 additions & 15 deletions requirements.txt

This file was deleted.

25 changes: 19 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
with open('README.md', encoding='utf-8') as f:
long_description = f.read()

# Load requirements
with open('requirements.txt', encoding='utf-8') as f:
requirements = [line.strip() for line in f if line.strip() != '']


setup(
name='chemprop',
Expand All @@ -32,7 +28,8 @@
project_urls={
'Documentation': 'https://chemprop.readthedocs.io/en/latest/',
'Source': 'https://github.com/chemprop/chemprop',
'Demo': 'http://chemprop.csail.mit.edu/'
'PyPi': 'https://pypi.org/project/chemprop/',
'Demo': 'http://chemprop.csail.mit.edu/',
},
license='MIT',
packages=find_packages(),
Expand All @@ -48,7 +45,23 @@
'sklearn_predict=chemprop.sklearn_predict:sklearn_predict',
]
},
install_requires=requirements,
install_requires=[
'descriptastorus@git+https://github.com/bp-kelley/descriptastorus@master',
'flask>=1.1.2',
'hyperopt>=0.2.3',
'matplotlib>=3.1.3',
'numpy>=1.18.1',
'pandas>=1.0.3',
'pandas-flavor>=0.2.0',
'scikit-learn>=0.22.2.post1',
'scipy==1.4.1',
'sphinx>=3.1.2',
'tensorboardX>=2.0',
'tensorflow>=1.13.1',
'torch>=1.5.1',
'tqdm>=4.45.0',
'typed-argument-parser>=1.5.4'
],
tests_require=['pytest'],
python_requires='>=3.6',
classifiers=[
Expand Down

0 comments on commit 4c8a77e

Please sign in to comment.