Skip to content

Commit eb08395

Browse files
authored
chore: add imports to setup.py (#29)
* chore: add imports to setup.py * ci: add pypi push pipeline * ci: use macos 13 * ci: use python 3.10 * ci: use ubuntu 20.04 * ci: remove macos test
1 parent e1c36bc commit eb08395

File tree

3 files changed

+34
-6
lines changed

3 files changed

+34
-6
lines changed

.github/workflows/build.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
include:
13-
- os: ubuntu-18.04
13+
- os: ubuntu-20.04
1414
pip_cache_path: ~/.cache/pip
1515
experimental: false
16-
- os: macos-latest
17-
pip_cache_path: ~/Library/Caches/pip
18-
experimental: false
1916
defaults:
2017
run:
2118
shell: bash -l {0} # For conda
@@ -28,7 +25,7 @@ jobs:
2825
- name: Checkout and setup python
2926
uses: actions/setup-python@v2
3027
with:
31-
python-version: 3.6
28+
python-version: '3.10'
3229
architecture: 'x64'
3330

3431
- name: Cache conda

.github/workflows/push_pypi.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-python@v2
13+
- name: Install dependencies
14+
run: |
15+
python -m pip install --upgrade pip
16+
pip install setuptools wheel twine
17+
- name: Build and publish
18+
env:
19+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
20+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
21+
run: |
22+
python setup.py sdist bdist_wheel
23+
twine upload --skip-existing dist/*

setup.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,15 @@ def get_version(rel_path):
3131
3232
3333
),
34-
install_requires=['numpy', 'scipy', 'torch>=1.0.0'],
34+
install_requires=[
35+
'numpy',
36+
'scipy',
37+
'torch>=1.0.0',
38+
'pandas',
39+
'tqdm',
40+
'rdkit',
41+
'pytoda>=1.1.5',
42+
],
3543
packages=find_packages('.'),
3644
zip_safe=False,
3745
)

0 commit comments

Comments
 (0)