File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 39
39
- uses : actions/setup-python@v2
40
40
name : Install Python
41
41
with :
42
- python-version : ' 3.8'
42
+ python-version : ' 3.x'
43
+
44
+ - name : Install dependencies
45
+ run : |
46
+ python -m pip install --upgrade pip
47
+ pip install -r requirements-tests.txt
48
+ if [ -f requirements.txt ]; then pip install -r requirements.txt;
43
49
44
50
- name : Build sdist
45
51
run : python setup.py sdist
Original file line number Diff line number Diff line change
1
+ numpy
2
+ scipy
3
+ cython
Original file line number Diff line number Diff line change 7
7
from setuptools import setup , Extension , find_packages
8
8
from Cython .Build import cythonize
9
9
import numpy as np
10
+ import os
10
11
11
12
ext_modules = [
12
13
Extension ("pcsaft" ,
16
17
with open ("docs/README.rst" , "r" ) as fh :
17
18
long_description = fh .read ()
18
19
20
+ requirements_path = './requirements.txt'
21
+ install_requires = []
22
+ if os .path .isfile (requirements_path ):
23
+ with open (requirements_path ) as f :
24
+ install_requires = f .read ().splitlines ()
25
+
19
26
setup (name = 'pcsaft' ,
20
27
version = '1.2.0' ,
21
28
author = "Zach Baird" ,
24
31
long_description_content_type = "text/x-rst" ,
25
32
url = "https://github.com/zmeri/PC-SAFT" ,
26
33
packages = find_packages (),
27
- install_requires = [
28
- 'numpy' ,
29
- 'scipy' ,
30
- 'cython'
31
- ],
34
+ install_requires = install_requires ,
32
35
classifiers = [
33
36
"Programming Language :: Python :: 3" ,
34
37
"Programming Language :: C++" ,
You can’t perform that action at this time.
0 commit comments