Skip to content

Commit

Permalink
packaging update
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed Sep 16, 2022
1 parent 57d0130 commit fb75988
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 109 deletions.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ matplotlib
msgpack >= 1.0.0
zmq
pandas
bluesky-perfdata
bluesky-navdata
bluesky-simdata
108 changes: 54 additions & 54 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Always prefer setuptools over distutils
import os
from pathlib import Path
from setuptools import setup, find_packages, find_namespace_packages, Extension
from setuptools import setup, find_packages, Extension
import configparser
import numpy as np

Expand All @@ -27,65 +27,65 @@
'test': ['coverage', 'flake8', 'radon', 'nose'],
})

try:
if not Path('bluesky/resources/scenario').exists():
os.symlink('../../scenario', 'bluesky/resources/scenario')
if not Path('bluesky/resources/plugins').exists():
os.symlink('../../plugins', 'bluesky/resources/plugins')
print(list(Path('bluesky/resources').glob('*')))
setup(
name='bluesky-simulator', # 'bluesky' package name already taken in PyPI
use_calver=True,
setup_requires=['calver'],
install_requires=install_requires,
extras_require=extras_requirements,
author='The BlueSky community',
license='GNU General Public License v3 (GPLv3)',
maintainer='Jacco Hoekstra and Joost Ellerbroek',
description='The Open Air Traffic Simulator',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/TUDelft-CNS-ATM/bluesky',
classifiers=[
'Development Status :: 4 - Beta',

# Indicate who your project is intended for
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
setup(
name='bluesky-simulator', # 'bluesky' package name already taken in PyPI
use_calver=True,
setup_requires=['calver'],
install_requires=install_requires,
extras_require=extras_requirements,
author='The BlueSky community',
license='GNU General Public License v3 (GPLv3)',
maintainer='Jacco Hoekstra and Joost Ellerbroek',
description='The Open Air Traffic Simulator',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/TUDelft-CNS-ATM/bluesky',
classifiers=[
'Development Status :: 4 - Beta',

# Pick your license as you wish
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',

# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
# Pick your license as you wish
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',

# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
],

# This field adds keywords for your project which will appear on the
keywords='atm transport simulation aviation aircraft',
packages=find_packages(exclude=['contrib', 'docs', 'tests', 'bluesky/resources/graphics', 'bluesky/resources/html', 'bluesky/resources/navdata', 'bluesky/resources/performance']),# Required
include_package_data=True,
exclude_package_data={'bluesky': ['resources/graphics/*', 'resources/html/*', 'resources/navdata/*', 'resources/performance/*']},
package_data={
'bluesky': ['resources/*']
},
entry_points={
'console_scripts': [
'bluesky=bluesky.__main__:main',
],
},

# This field adds keywords for your project which will appear on the
keywords='atm transport simulation aviation aircraft',
packages=find_packages(exclude=['contrib', 'docs', 'tests', 'bluesky/resources/graphics', 'bluesky/resources/html', 'bluesky/resources/navdata', 'bluesky/resources/performance']),# Required
include_package_data=True,
exclude_package_data={'bluesky': ['resources/graphics/*', 'resources/html/*', 'resources/navdata/*', 'resources/performance/*']},
package_data={
'bluesky': ['resources/*']
},
entry_points={
'console_scripts': [
'bluesky=bluesky.__main__:main',
],
# 'bluesky.resources': [
# 'base = bluesky.resources'
# ]
},
project_urls={
'Source': 'https://github.com/TUDelft-CNS-ATM/bluesky',
},
include_dirs=[np.get_include()],
ext_modules=[Extension('bluesky.tools.cgeo', ['bluesky/tools/src_cpp/cgeo.cpp']),
Extension('bluesky.traffic.asas.cstatebased', ['bluesky/traffic/asas/src_cpp/cstatebased.cpp'], include_dirs=['bluesky/tools/src_cpp'])]
)

project_urls={
'Source': 'https://github.com/TUDelft-CNS-ATM/bluesky',
},
include_dirs=[np.get_include()],
ext_modules=[Extension('bluesky.tools.cgeo', ['bluesky/tools/src_cpp/cgeo.cpp']),
Extension('bluesky.traffic.asas.cstatebased', ['bluesky/traffic/asas/src_cpp/cstatebased.cpp'], include_dirs=['bluesky/tools/src_cpp'])]
)
finally:
if Path('bluesky/resources/scenario').is_symlink():
os.unlink('bluesky/resources/scenario')
os.unlink('bluesky/resources/plugins')
if Path('bluesky/resources/plugins').is_symlink():
os.unlink('bluesky/resources/plugins')
1 change: 0 additions & 1 deletion setup_guidata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from setuptools import setup
from os import path
import glob


# Get the long description from the README file
Expand Down
49 changes: 0 additions & 49 deletions setup_perfdata.py

This file was deleted.

6 changes: 3 additions & 3 deletions setup_navdata.py → setup_simdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@


setup(
name='bluesky-navdata',
name='bluesky-simdata',
use_calver=True,
setup_requires=['calver'],
author='The BlueSky community',
license='GNU General Public License v3 (GPLv3)',
maintainer='Jacco Hoekstra and Joost Ellerbroek',
description='The Open Air Traffic Simulator - GUI resources',
description='The Open Air Traffic Simulator - simulation resources',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/TUDelft-CNS-ATM/bluesky',
Expand All @@ -40,7 +40,7 @@

# This field adds keywords for your project which will appear on the
keywords='atm transport simulation aviation aircraft',
packages=['bluesky.resources.navdata'], # Required
packages=['bluesky.resources.performance', 'bluesky.resources.navdata'], # Required
include_package_data=True,
project_urls={
'Source': 'https://github.com/TUDelft-CNS-ATM/bluesky',
Expand Down

0 comments on commit fb75988

Please sign in to comment.