Skip to content

Commit

Permalink
Modernize packaging (#79)
Browse files Browse the repository at this point in the history
* modernize packaging (replace versioneer with versioningit, only use minimal setup.py for dynamic authors)
* update markers
* fix up tag2version
* update fetch-depth
  • Loading branch information
IAlibay authored Jan 22, 2024
1 parent 3db4354 commit 8c8995c
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 3,061 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gh-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup python
uses: actions/setup-python@v4
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,5 @@ cython_debug/
# vim
*.swp

# authors file
MDAnalysisData/authors.py
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build:
# install the repo
python:
install:
- method: setuptools
- method: pip
path: .

# Optionally set the version of Python and requirements required to build your docs
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

## Changes
- Update packaging to be PEP518 compliant.

## [0.9.0] - 2023-10-30

### Changes
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
include versioneer.py
include MDAnalysisData/_version.py
include README.md AUTHORS LICENSE CHANGELOG.md
6 changes: 4 additions & 2 deletions MDAnalysisData/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

from . import datasets

from . import _version
__version__ = _version.get_versions()['version']

from importlib.metadata import version
__version__ = version("MDAnalysisData")


try:
from .authors import __authors__
Expand Down
Loading

0 comments on commit 8c8995c

Please sign in to comment.