Skip to content

Commit 6a89225

Browse files
Tom ClarkTom Clark
Tom Clark
authored and
Tom Clark
committed
General updates figuring out how PyPI works
1 parent 7814a58 commit 6a89225

File tree

2 files changed

+23
-27
lines changed

2 files changed

+23
-27
lines changed

requirements.txt

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,2 @@
1-
appdirs==1.4.3
2-
args==0.1.0
3-
clint==0.5.1
4-
packaging==16.8
5-
pyparsing==2.2.0
6-
six==1.10.0
7-
8-
# TODO Remove this to separate oasys SDK and sdk-examples repo
9-
--editable octue
10-
11-
# ----------- Some common libraries you may wish to include. Removing these may break the examples, but won't break the template :) ------------
12-
13-
# Plotting tools to help create json based figure files (more powerful and better validation than creating the raw json yourself)
14-
#plotly==2.0.5
15-
16-
# A numerical manipulation library
17-
numpy==1.12.1
18-
19-
# A powerful database api library. Supply it with your db's uri (through environment variables - don't commit URIs to git!!!!) and read/add data to/from databases.
20-
# Note that results of analyses using externally managed databases as data sources cannot be guaranteed to be idempotent.
21-
#SQLAlchemy==1.0.12
22-
#SQLAlchemy-Utils==0.31.6
1+
wheel
2+
twine

setup.py

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
1-
from setuptools import setup
1+
from setuptools import setup, find_packages
22

3+
# Note:
4+
# The Hitchiker's guide to python provides an excellent, standard, method for creating python packages:
5+
# http://docs.python-guide.org/en/latest/writing/structure/
6+
#
7+
# To deploy on PYPI follow the instructions at the bottom of:
8+
# https://packaging.python.org/tutorials/distributing-packages/#uploading-your-project-to-pypi
9+
# where the username on pypi for all octue modules is 'octue'
10+
11+
with open('README.md') as f:
12+
readme_text = f.read()
13+
14+
with open('LICENSE') as f:
15+
license_text = f.read()
316

417
setup(name='octue',
5-
version='0.1',
18+
version='0.1.0',
619
# packages=['octue', 'octue.utils', 'octue.config', 'octue.manifest', 'octue.resources'],
720
url='https://www.github.com/octue/octue-sdk-python',
8-
license='',
9-
author='thclark',
21+
license=license_text,
22+
author='Thomas Clark',
1023
author_email='[email protected]',
11-
description='A python package providing a python SDK to the Octue API and providing supporting functions to Octue applications')
24+
description='A package providing a python SDK to the Octue API and supporting functions for Octue applications',
25+
long_description=readme_text,
26+
packages=find_packages(exclude=('tests', 'docs'))
27+
)
1228

1329

1430
# TODO move the following into octue example app template

0 commit comments

Comments
 (0)