Skip to content

Commit

Permalink
Updated to dynamic versioning
Browse files Browse the repository at this point in the history
vcs-sourced versioning for bluesky-simulator, calver versioning for data packages
  • Loading branch information
jooste committed Dec 18, 2024
1 parent 7b6f6a9 commit fdf2f23
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 17 deletions.
1 change: 1 addition & 0 deletions bluesky/resources/graphics/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2024.12.18"
1 change: 1 addition & 0 deletions bluesky/resources/navdata/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2024.12.18"
10 changes: 7 additions & 3 deletions packaging/bluesky-guidata/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bluesky-guidata"
version = "1.0.0"
dynamic = ["version"]

authors = [
{ name="Joost Ellerbroek", email="[email protected]" },
Expand Down Expand Up @@ -28,9 +28,13 @@ Homepage = "https://github.com/TUDelft-CNS-ATM/bluesky"
Issues = "https://github.com/TUDelft-CNS-ATM/bluesky/issues"

[build-system]
requires = ["hatchling"]
requires = ["hatchling==1.26.3", "hatch-calver"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.sdist.force-include]
[tool.hatch.version]
scheme = "calver"
path = "../../bluesky/resources/graphics/__init__.py"

[tool.hatch.build.force-include]
"../../bluesky/resources/graphics" = "bluesky/resources/graphics"
"../../bluesky/resources/html" = "bluesky/resources/html"
40 changes: 40 additions & 0 deletions packaging/bluesky-navdata/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[project]
name = "bluesky-navdata"
dynamic = ["version"]

authors = [
{ name="Joost Ellerbroek", email="[email protected]" },
{ name="Jacco Hoekstra", email="[email protected]" }
]

description = "Navigation data files for the BlueSky Open ATM Simulator"
readme = "../../README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",

"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",

"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",

"Operating System :: OS Independent",
]
keywords = ['ATM', 'transport', 'simulation', 'aviation', 'aircraft']

[project.urls]
Homepage = "https://github.com/TUDelft-CNS-ATM/bluesky"
Issues = "https://github.com/TUDelft-CNS-ATM/bluesky/issues"

[build-system]
requires = ["hatchling==1.26.3", "hatch-calver"]
build-backend = "hatchling.build"

[tool.hatch.version]
scheme = "calver"
path = "../../bluesky/resources/navdata/__init__.py"

[tool.hatch.build.force-include]
"../../bluesky/resources/navdata" = "bluesky/resources/navdata"

23 changes: 9 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = "bluesky-simulator"
# dynamic = ["version"]
version = "1.0.0"
dynamic = ["version"]
dependencies = [
"numpy >= 2.0.0",
"scipy >= 1.13.0",
"matplotlib >= 3.9.0",
"pandas >= 2.2.0",
"msgpack >= 1.0.0",
"zmq"
"zmq",
"bluesky-navdata"
]

authors = [
Expand Down Expand Up @@ -66,9 +66,13 @@ Repository = "https://github.com/TUDelft-CNS-ATM/bluesky"
# Changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md"

[build-system]
requires = ["hatchling"]
requires = ["hatchling==1.26.3", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.hatch.version]
source = "vcs"


[tool.hatch.build]
include = [
"bluesky/*",
Expand All @@ -77,19 +81,10 @@ exclude = [
'docs',
'utils',
'bluesky/test',
'bluesky/resources/navdata',
'bluesky/resources/graphics',
'bluesky/resources/html'
]


[tool.hatch.build.targets.wheel.hooks.custom]
dependencies = ["setuptools>=69.1.1", "numpy"]

# [tool.hatch.build.targets.wheel.hooks.cython]
# dependencies = ["hatch-cython"]

# [tool.hatch.build.targets.wheel.hooks.cython.options]
# # include .h or .cpp directories
# includes = []
# # include numpy headers
# include_numpy = true

0 comments on commit fdf2f23

Please sign in to comment.