Skip to content

Commit

Permalink
refactor!: dynamic version and drop py3.7 py3.8 py3.9 closes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsanima committed May 11, 2023
1 parent 48d9784 commit 5555845
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 256 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
# Copyritht © 2022-2023 Marcin Różewski MDSANIMA

name: docs-build-deployment
on:
push:
branches: [main]

jobs:
docs:
name: documentation
name: Sphinx Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.8"
python-version: "3.10"
cache: "pip"
cache-dependency-path: "**/requirements-doc.txt"
- name: install dependencies
cache-dependency-path: "**/requirements-*.txt"
- name: Install DEVS Dependencies
run: pip install -r requirements-dev.txt
- name: Install DOCS Dependencies
run: pip install -r requirements-doc.txt
- name: build package
run: python setup.py sdist bdist_wheel
- name: install package
- name: Build Package
run: python -m build
- name: Install Package
run: pip install dist/mdsanima_dev-*-py3-none-any.whl
- name: build documentation
- name: Build Documentation
run: python setup.py build_sphinx
- name: upload to github pages
- name: Upload to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
86 changes: 0 additions & 86 deletions make_release.py

This file was deleted.

113 changes: 19 additions & 94 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,95 +1,10 @@
{
"name": "mdsanima_dev",
"version": "0.1.1",
"author": {
"name": "Marcin Różewski",
"email": "marcinrozewski@gmail.com"
},
"private": true,
"description": "MDSANIMA-DEV Python Development Tools",
"repository": "https://github.com/mdsanima-dev/mdsanima-dev.git",
"homepage": "https://github.com/mdsanima-dev/mdsanima-dev/#readme",
"license": "MIT",
"project_urls": {
"Documentation": "https://mdsanima-dev.github.io/mdsanima-dev/",
"Source": "https://github.com/mdsanima-dev/mdsanima-dev/",
"Bug Tracker": "https://github.com/mdsanima-dev/mdsanima-dev/issues/"
},
"devDependencies": {
"standard-version": "^9.3.0",
"conventional-changelog": "^5.0.1",
"mdsanima-conventional-changelog": "https://github.com/mdsanima/conventional-changelog/releases/tag/v5.0.1"
},
"keywords": [
"animation",
"automatic",
"changelog",
"console",
"colors",
"development",
"emoj",
"mdsanima-dev",
"python",
"shell",
"terminal",
"tools",
"versioning",
"vfx"
],
"extra_require": {
"docs": [
"furo",
"myst-parser",
"Sphinx",
"sphinx-copybutton",
"sphinx-design"
]
},
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Plugins",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Natural Language :: Polish",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Desktop Environment",
"Topic :: Documentation :: Sphinx",
"Topic :: Education :: Testing",
"Topic :: Home Automation",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System",
"Topic :: System :: Console Fonts",
"Topic :: System :: Shells",
"Topic :: System :: System Shells",
"Topic :: Terminals",
"Topic :: Text Processing",
"Topic :: Text Processing :: Markup :: reStructuredText"
],
"standard-version": {
"infile": "CHANGELOG.md",
"bumpFiles": [
{
"filename": "package.json",
"type": "json"
}
],
"scripts": {
"postbump": "./make_release.py && printf '\n bumping version in __init__.py'",
"posttag": "printf '\n Run 'git push --follow-tags origin master' to publish'",
"release": "standard-version --commit-all --sign",
"release-test": "standard-version --dry-run"
},
"skip": {
"bump": false,
"changelog": false,
Expand Down Expand Up @@ -138,13 +53,23 @@
"header": "# {octicon}`checklist;1em;sd-text-secondary` `CHANGELOG`\n\nAll notable changes to this project will be documented in this file.\n\nPlease check\n[standard-version {octicon}`link-external;0.8em`](https://github.com/conventional-changelog/standard-version)\nand documentation for commit guidelines. Also you should check\n[conventional-changelog {octicon}`link-external;0.8em`](https://github.com/mdsanima/conventional-changelog)\nfor more detail.\n\nDocomentation for *Python* package\n[mdsanima-dev {octicon}`link-external;0.8em`](https://pypi.org/project/mdsanima-dev) is available\nat [GitHub Pages {octicon}`link-external;0.8em`](https://mdsanima-dev.github.io/mdsanima-dev/)\nbe sure to check it.\n"
},
"scripts": {
"check": "standard-version --dry-run",
"release": "standard-version --commit-all --sign",
"release-tag": "standard-version --commit-all --sign -t mdsanima-dev-",
"alpha": "standard-version --commit-all --sign --prerelease alpha",
"beta": "standard-version --commit-all --sign --prerelease beta",
"test": "echo testing...",
"test-skip": "npm run release -- --skip.changelog",
"test-first": "npm run release -- --first-release"
"release": "standard-version --sign",
"major": "npm run release -- --release-as major",
"minor": "npm run release -- --release-as minor",
"patch": "npm run release -- --release-as patch",
"alpha": "npm run release -- --prerelease alpha",
"beta": "npm run release -- --prerelease beta",
"check-release": "npm run release -- --dry-run",
"check-major": "npm run major -- --dry-run",
"check-minor": "npm run minor -- --dry-run",
"check-patch": "npm run patch -- --dry-run",
"check-alpha": "npm run alpha -- --dry-run",
"check-beta": "npm run beta -- --dry-run",
"test-skip": "npm run release -- --skip.changelog --dry-run"
},
"author": "mdsanima",
"license": "MIT",
"devDependencies": {
"standard-version": "^9.5.0"
}
}
99 changes: 96 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,99 @@
# Copyritht © 2022 - 2023 Marcin Różewski MDSANIMA
# Copyritht © 2021 - 2023 Marcin Różewski MDSANIMA

[build-system]
requires = ['setuptools>=46.4.0', 'wheel']
requires = ['setuptools>=67.7.2', 'wheel>=0.40.0', 'pip>=23.1.2', 'setuptools_scm[toml]>=7.1.0']
build-backend = 'setuptools.build_meta'

[project]
name = 'mdsanima_dev'
authors = [{name = 'Marcin Różewski', email = 'marcinrozewski@gmail.com'}]
description = 'MDSANIMA-DEV Python Development Tools'
readme = 'README.md'
license = {file = 'LICENSE'}
requires-python = '>=3.10'
keywords = [
'animation',
'automatic',
'bash',
'changelog',
'cli',
'colors',
'command-line',
'console-app',
'console-application',
'console',
'development',
'emoj',
'mdsanima-dev',
'mdsanima',
'python-library',
'python',
'python3',
'shell-script',
'shell',
'terminal',
'tools',
'versioning',
'vfx',
'zsh',
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Information Technology',
'Intended Audience :: Legal Industry',
'Intended Audience :: Other Audience',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Natural Language :: Polish',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: BSD',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Programming Language :: Python :: 3.10',
'Topic :: Desktop Environment',
'Topic :: Documentation :: Sphinx',
'Topic :: Education :: Testing',
'Topic :: Home Automation',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System',
'Topic :: System :: Console Fonts',
'Topic :: System :: Filesystems',
'Topic :: System :: Logging',
'Topic :: System :: Operating System',
'Topic :: System :: Shells',
'Topic :: System :: System Shells',
'Topic :: System :: Systems Administration',
'Topic :: System :: Systems Administration :: Authentication/Directory',
'Topic :: Terminals',
'Topic :: Text Processing',
'Topic :: Text Processing :: Markup :: reStructuredText',
'Topic :: Utilities',
'Typing :: Typed',
]
dynamic = ['version']

[project.urls]
homepage = 'https://github.com/mdsanima-dev/mdsanima-dev'
documentation = 'https://github.com/mdsanima-dev/mdsanima-dev#readme'
repository = 'https://github.com/mdsanima-dev/mdsanima-dev.git'
changelog = 'https://github.com/mdsanima-dev/mdsanima-dev/blob/main/CHANGELOG.md'

[project.scripts]
mdsanima-dev = 'mdsanima_dev.utils.converts:main'

[tool.black]
line-length = 120
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
target-version = ['py310']
include = '\.pyi?$'

[tool.isort]
Expand All @@ -17,3 +104,9 @@ lines_before_imports = 2
lines_after_imports = 2
treat_all_comments_as_code = true
extend_skip = ['.md', '.json']

[tool.setuptools.packages.find]
where = ['src']

[tool.setuptools_scm]
write_to = 'src/mdsanima_dev/_version.py'
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ black==23.3.0
build==0.10.0
flake8==6.0.0
isort==5.12.0
pip==23.1.2
pylint==2.17.3
setuptools-scm==7.1.0
setuptools==67.7.2
twine==4.0.2
wheel==0.40.0
1 change: 0 additions & 1 deletion requirements-doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ sphinx-design==0.0.13
sphinx-inline-tabs==2022.1.2b11
Sphinx==4.5.0
sphinxext-opengraph==0.6.3
wheel==0.40.0

0 comments on commit 5555845

Please sign in to comment.