Skip to content

Commit 8c8995c

Browse files
authored
Modernize packaging (#79)
* modernize packaging (replace versioneer with versioningit, only use minimal setup.py for dynamic authors) * update markers * fix up tag2version * update fetch-depth
1 parent 3db4354 commit 8c8995c

11 files changed

Lines changed: 118 additions & 3061 deletions

File tree

.github/workflows/gh-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737

3838
steps:
3939
- uses: actions/checkout@v4
40+
with:
41+
fetch-depth: 0
4042

4143
- name: Setup python
4244
uses: actions/setup-python@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,5 @@ cython_debug/
163163
# vim
164164
*.swp
165165

166+
# authors file
167+
MDAnalysisData/authors.py

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build:
1818
# install the repo
1919
python:
2020
install:
21-
- method: setuptools
21+
- method: pip
2222
path: .
2323

2424
# Optionally set the version of Python and requirements required to build your docs

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## Unreleased
8+
9+
## Changes
10+
- Update packaging to be PEP518 compliant.
11+
712
## [0.9.0] - 2023-10-30
813

914
### Changes

MANIFEST.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
include versioneer.py
2-
include MDAnalysisData/_version.py
31
include README.md AUTHORS LICENSE CHANGELOG.md

MDAnalysisData/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77

88
from . import datasets
99

10-
from . import _version
11-
__version__ = _version.get_versions()['version']
10+
11+
from importlib.metadata import version
12+
__version__ = version("MDAnalysisData")
13+
1214

1315
try:
1416
from .authors import __authors__

0 commit comments

Comments
 (0)