Skip to content

Commit

Permalink
Make package ready to pip
Browse files Browse the repository at this point in the history
  • Loading branch information
hombit committed Nov 8, 2017
1 parent ec26233 commit 71e2466
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
20 changes: 1 addition & 19 deletions .gitignore
Expand Up @@ -9,23 +9,5 @@ build/
dist/
*.egg-info/


### MacOs ###
.DS_Store


### KDE ###
.directory


### Vim ###
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]


### IPythonNotebook ###
### Jupyter ###
.ipynb_checkpoints/


### Idea ###
.idea/
3 changes: 3 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,3 @@
include README.md
include LICENSE
include requirements.txt
27 changes: 20 additions & 7 deletions setup.py
@@ -1,23 +1,36 @@
#!/usr/bin/env python3

# Read packaging and distributing tutorial:
# https://packaging.python.org/tutorials/distributing-packages/

from setuptools import find_packages, setup
import os
import glob

here = os.path.abspath(os.path.dirname(__file__))

with open('requirements.txt') as f:
reqs = f.read().splitlines()
with open(os.path.join(here, 'README.md')) as f:
long_description = f.read()

with open(os.path.join(here, 'requirements.txt')) as f:
install_requires=f.read().splitlines()

setup(
name='scientific_python',
version='0.0.1',
url='https://xray.sai.msu.ru/~malanchev/',
version='0.1.0',
url='http://homb.it/sci_py/',
license='MIT',
author='Konstantin Malanchev',
author_email='malanchev@physics.msu.ru',
description='Package with materials for Scientific Python course for astronomers in Moscow University',
long_description=long_description,
packages=find_packages(),
scripts=['bin/sci_py_example', 'bin/sci_py_import_all'],
package_data={
'scientific_python': ['misc', 'doc'],
},
data_files=[
('doc', ['doc/course_abstract.docx',]),
('misc', glob.glob('misc/**/*', recursive=True)),
],
install_requires=install_requires,
# test_suite='scientific_python.test.suite',
classifiers=[
'Intended Audience :: Education',
Expand Down

0 comments on commit 71e2466

Please sign in to comment.