Skip to content

Commit

Permalink
Bump version, added data_files to packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam-Deacon committed Nov 28, 2018
1 parent 2561463 commit 0d5bfaa
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
# To use a consistent encoding
from codecs import open
from os import path
import glob

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

# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()


setup(
name='bluesky-simulator', # 'bluesky' package name already taken
version='0.0.1.dev1',
version='0.0.1.dev2',
description='The Open Air Traffic Simulator',
long_description=long_description,
url='https://github.com/pypa/sampleproject',
Expand All @@ -35,31 +35,41 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],

# This field adds keywords for your project which will appear on the
keywords='atm aft transport simulation',
keywords='atm aft transport simulation',
packages=find_packages(exclude=['contrib', 'docs', 'tests']), # Required
install_requires=open(here + '/requirements.txt', 'r').readlines(),
extras_require={
'dev': ['check-manifest'],
'test': ['coverage', 'flake8', 'radon', 'nose'],
},
include_package_data=True,
package_data={
'scripts': [here + '/BlueSky_pygame.py', here + '/BlueSky_qtgl.py']
# 'sample': ['package_data.dat'],
'data': [f for f in glob.glob('data/**/*') if path.isfile(f)] + ['data/default.cfg']
},
# 'scripts': [here + '/BlueSky_pygame.py', here + '/BlueSky_qtgl.py',
# here + '/utils/mkcustomnavdata/makescen.py'] + \
# glob.glob(here + '/utils/Scenario-creator/'),
# '': glob.glob(here + '/plugins/*.py'),
# '': glob.glob(here + '/data/**/*'),
# },
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# `pip` to create the appropriate form of executable for the target
# platform.
data_files = [('/share/bluesky/data', [f for f in glob.glob('data/**/*') if path.isfile(f)] + ['data/default.cfg']),
('/share/bluesky/plugins', [f for f in glob.glob('plugins/*.py') if path.isfile(f)]),
('/share/bluesky/utils', [f for f in glob.glob('utils/**/*') if path.isfile(f)])],
entry_points={
'console_scripts': [
'BlueSky=bluesky:main',
],
},

scripts=[here + '/BlueSky_pygame.py', here + '/BlueSky_qtgl.py'],
scripts=['BlueSky_pygame.py', 'BlueSky_qtgl.py'],

project_urls={
'Source': 'https://github.com/ProfHoekstra/bluesky',
Expand Down

0 comments on commit 0d5bfaa

Please sign in to comment.