Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up versioning #81

Open
3 tasks
neworderofjamie opened this issue Nov 9, 2023 · 0 comments
Open
3 tasks

Fix up versioning #81

neworderofjamie opened this issue Nov 9, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@neworderofjamie
Copy link
Contributor

  • Single text file in repository root with version string
  • Read into version in setup.py for both mlGeNN and mlGeNN TF
# Read version from txt file
with open(os.path.join(genn_path, "version.txt")) as version_file:
    version = version_file.read().strip()
  • Export version through __version__ in init.py in mlGeNN and mlGeNN TF
if sys.version_info >= (3, 8):
    from importlib import metadata
else:
    import importlib_metadata as metadata

__version__ = metadata.version("pygenn")
@neworderofjamie neworderofjamie added enhancement New feature or request good first issue Good for newcomers labels Nov 9, 2023
@neworderofjamie neworderofjamie added this to the mlGeNN 2.3 milestone Jun 27, 2024
@neworderofjamie neworderofjamie modified the milestones: mlGeNN 2.3, mlGeNN 2.X Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant