Skip to content
Snippets Groups Projects
Commit 59fbeec3 authored by Josenilson Ferreira da SIlva's avatar Josenilson Ferreira da SIlva :tiger:
Browse files

Import Upstream version 0.12.0

parent a6fb9c44
No related branches found
No related tags found
No related merge requests found
Showing
with 71 additions and 180 deletions
[bumpversion]
current_version = 0.11.0
current_version = 0.12.0
commit = True
tag = True
......
# This file is managed by 'repo_helper'. Don't edit it directly.
---
version: 1
update_configs:
- package_manager: python
directory: /
update_schedule: weekly
default_reviewers:
- domdfcoding
......@@ -6,5 +6,6 @@ updates:
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 0
reviewers:
- domdfcoding
......@@ -19,10 +19,10 @@ jobs:
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
- name: Setup Python 🐍
uses: "actions/setup-python@v4"
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
......@@ -30,7 +30,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: env
conda-build-version: 3.23.3
conda-build-version: 3.28.4
python-version: "3.8"
miniforge-variant: Mambaforge
......@@ -57,7 +57,7 @@ jobs:
- name: "Install package"
run: |
$CONDA/bin/conda install -c file://$(pwd)/conda-bld enum_tools=0.11.0=py_1 -y || exit 1
$CONDA/bin/conda install -c file://$(pwd)/conda-bld enum_tools=0.12.0=py_1 -y || exit 1
- name: "Run Tests"
run: |
......
......@@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
- name: Check for changed files
uses: dorny/paths-filter@v2
......
......@@ -20,7 +20,7 @@ jobs:
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
- name: Check for changed files
uses: dorny/paths-filter@v2
......@@ -33,7 +33,7 @@ jobs:
- name: Setup Python 🐍
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v4"
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
......
......@@ -25,7 +25,7 @@ jobs:
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
- name: Check for changed files
uses: dorny/paths-filter@v2
......@@ -38,7 +38,7 @@ jobs:
- name: Setup Python 🐍
if: steps.changes.outputs.code == 'true'
uses: "actions/setup-python@v4"
uses: "actions/setup-python@v5"
with:
python-version: "3.8"
......
......@@ -22,7 +22,7 @@ jobs:
runs-on: "windows-2019"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-rc.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.5,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
strategy:
fail-fast: False
......@@ -34,15 +34,16 @@ jobs:
- {python-version: "3.9", testenvs: "py39-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.12.0-rc.1", testenvs: "py312-dev-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: True}
- {python-version: "3.12", testenvs: "py312-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-sphinx{6.2,7.0,7.1,7.2},build", experimental: True}
- {python-version: "pypy-3.6", testenvs: "pypy36-sphinx{4.3,4.4,4.5}", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: True}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: True}
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
......@@ -57,7 +58,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v4"
uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.config.python-version }}"
......@@ -74,7 +75,7 @@ jobs:
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false
- name: "Upload Coverage 🚀"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() && steps.setup-python.outcome == 'success' }}
with:
name: "coverage-${{ matrix.config.python-version }}"
......
......@@ -23,7 +23,7 @@ jobs:
runs-on: "ubuntu-20.04"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-rc.1,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.5,pypy-3.6,pypy-3.7,pypy-3.8,pypy-3.9'
strategy:
fail-fast: False
......@@ -35,15 +35,16 @@ jobs:
- {python-version: "3.9", testenvs: "py39-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.12.0-rc.1", testenvs: "py312-dev-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: True}
- {python-version: "3.12", testenvs: "py312-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-sphinx{6.2,7.0,7.1,7.2},build", experimental: True}
- {python-version: "pypy-3.6", testenvs: "pypy36-sphinx{4.3,4.4,4.5},build", experimental: False}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: True}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: True}
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
......@@ -58,7 +59,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v4"
uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.config.python-version }}"
......@@ -76,7 +77,7 @@ jobs:
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false
- name: "Upload Coverage 🚀"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() && steps.setup-python.outcome == 'success' }}
with:
name: "coverage-${{ matrix.config.python-version }}"
......@@ -88,10 +89,10 @@ jobs:
runs-on: "ubuntu-20.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
- name: Setup Python 🐍
uses: "actions/setup-python@v4"
uses: "actions/setup-python@v5"
with:
python-version: 3.8
......@@ -101,7 +102,7 @@ jobs:
python -m pip install --upgrade "coveralls>=3.0.0" coverage_pyver_pragma
- name: "Download Coverage 🪂"
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: coverage
......@@ -119,7 +120,7 @@ jobs:
- name: "Upload Combined Coverage Artefact 🚀"
if: ${{ steps.show.outcome != 'failure' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "combined-coverage"
path: .coverage
......@@ -137,11 +138,11 @@ jobs:
runs-on: "ubuntu-20.04"
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
if: startsWith(github.ref, 'refs/tags/')
- name: Setup Python 🐍
uses: "actions/setup-python@v4"
uses: "actions/setup-python@v5"
if: startsWith(github.ref, 'refs/tags/')
with:
python-version: 3.8
......@@ -182,10 +183,10 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') || (startsWith(github.event.head_commit.message, 'Bump version') != true)
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
- name: Setup Python 🐍
uses: "actions/setup-python@v4"
uses: "actions/setup-python@v5"
with:
python-version: 3.8
......@@ -193,7 +194,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: env
conda-build-version: 3.23.3
conda-build-version: 3.28.4
python-version: "3.8"
miniforge-variant: Mambaforge
......
......@@ -22,7 +22,7 @@ jobs:
runs-on: "macos-latest"
continue-on-error: ${{ matrix.config.experimental }}
env:
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12.0-rc.1,pypy-3.7,pypy-3.8,pypy-3.9'
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13.0-alpha.5,pypy-3.7,pypy-3.8,pypy-3.9'
strategy:
fail-fast: False
......@@ -34,14 +34,15 @@ jobs:
- {python-version: "3.9", testenvs: "py39-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.10", testenvs: "py310-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.11", testenvs: "py311-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.12.0-rc.1", testenvs: "py312-dev-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: True}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: True}
- {python-version: "3.12", testenvs: "py312-sphinx{3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: False}
- {python-version: "3.13.0-alpha.5", testenvs: "py313-dev-sphinx{6.2,7.0,7.1,7.2},build", experimental: True}
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: False}
- {python-version: "pypy-3.9", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2},build", experimental: True}
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
- name: Check for changed files
if: startsWith(github.ref, 'refs/tags/') != true
......@@ -56,7 +57,7 @@ jobs:
- name: Setup Python 🐍
id: setup-python
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
uses: "actions/setup-python@v4"
uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.config.python-version }}"
......@@ -73,7 +74,7 @@ jobs:
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false
- name: "Upload Coverage 🚀"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() && steps.setup-python.outcome == 'success' }}
with:
name: "coverage-${{ matrix.config.python-version }}"
......
......@@ -8,7 +8,7 @@ ci:
repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.9.0
rev: v0.9.1
hooks:
- id: reformat-pyproject
......@@ -43,13 +43,13 @@ repos:
- id: bind-requirements
- repo: https://github.com/domdfcoding/flake8-dunder-all
rev: v0.3.0
rev: v0.3.1
hooks:
- id: ensure-dunder-all
files: ^enum_tools/.*\.py$
- repo: https://github.com/domdfcoding/flake2lint
rev: v0.4.2
rev: v0.4.3
hooks:
- id: flake2lint
......@@ -76,18 +76,18 @@ repos:
- id: forbid-crlf
- repo: https://github.com/python-formate/snippet-fmt
rev: v0.1.4
rev: v0.1.5
hooks:
- id: snippet-fmt
- repo: https://github.com/python-formate/formate
rev: v0.5.0
rev: v0.7.0
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
- repo: https://github.com/domdfcoding/dep_checker
rev: v0.7.1
rev: v0.8.0
hooks:
- id: dep_checker
args:
......
......@@ -19,3 +19,6 @@ build:
jobs:
post_create_environment:
- pip install .[all]
post_install:
- pip install sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5
......@@ -101,7 +101,7 @@ Enum Tools
.. |language| image:: https://img.shields.io/github/languages/top/domdfcoding/enum_tools
:alt: GitHub top language
.. |commits-since| image:: https://img.shields.io/github/commits-since/domdfcoding/enum_tools/v0.11.0
.. |commits-since| image:: https://img.shields.io/github/commits-since/domdfcoding/enum_tools/v0.12.0
:target: https://github.com/domdfcoding/enum_tools/pulse
:alt: GitHub commits since tagged version
......@@ -109,7 +109,7 @@ Enum Tools
:target: https://github.com/domdfcoding/enum_tools/commit/master
:alt: GitHub last commit
.. |maintained| image:: https://img.shields.io/maintenance/yes/2023
.. |maintained| image:: https://img.shields.io/maintenance/yes/2024
:alt: Maintenance
.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/enum_tools
......
#!/bin/bash
############################## SESSÃO VARIAVÉIS##############################################
# Necessaria para o arquivo debian/watch:
download="$dominio_repo/$owner/$project/tags"
check="tags .*/v?@ANY_VERSION@@ARCHIVE_EXT@"
watch="https://$(echo "$tarball_url" | awk -F'/' '{print $3}')/$owner/$project/$check"
#Neessarias para o arquivo debian/control:
homepage="Homepage: ${dominio_repo}/${owner}/${project}"
browser="Vcs-Browser: https://salsa.debian.org/python-team/packages/${project}"
git="Vcs-Git: https://salsa.debian.org/python-team/packages/${project}.git"
############################## SESSÃO DEBIANIZAÇÃO#############################################
dh_make --python -c "$licenca" -f "../$tarball_filename"
echo "Debianização feita com sucesso"
# Realize outras ações ou configurações necessárias aqui
else
echo "O diretório não segue o formato esperado (nome-versão). O script não pode continuar."
fi
############################## FORMATAÇÃO DIRETORIO DEBIAN ##############################
# Entrar no diretório "debian"
wrap-and-sort -a
cd debian
#1. Excluir arquivos desnecessarios o diretório "debian"
ls --hide=control --hide=copyright --hide=rules --hide=*-doc.docs --hide=*.doc-base.ex --hide=README.source --hide=watch.ex --hide=changelog --hide=source --hide=upstream| xargs -d '\n' rm -r
#2. debian/watch
mv watch.ex watch
watch_line_1="version=4"
watch_line_2="$watch"
echo -e "$watch_line_1\n$watch_line_2" > watch
echo "Diretório debian formatado com sucesso"
#/3.debian/upstream/metadata
mv upstream/metadata.ex upstream/metadata
sed -i -e 's/^# //g' -e '1,4d' -e 's/<user>/'"$owner"'/g' -e '/Changelog:/d' -e '/Documentation:/d' upstream/metadata
#4. debian/control:
sed -i -e 's/unknown/python/' control
sed -i -e '/Testsuite: autopkgtest-pkg-python/d' -e '/Multi-Arch: foreign/d' control
sed -i -e "s|Homepage:.*|Homepage: $dominio_repo/$owner/$project|" control
sed -i -e "s|#Vcs-Browser:.*|Vcs-Browser: https://salsa.debian.org/python-team/packages/$project|" control
sed -i -e "s|#Vcs-Git:.*|Vcs-Git: https://salsa.debian.org/python-team/packages/$project.git|" control
#5. debian/copyright
# Executar o comando egrep e salvar a saída em autores.txt
grep -ErisA1 '(copyright)' ../* > filtar_direitos_autorais 2>/dev/null
# Encontrar o PID (identificador de processo) do processo less
less_pid=$(pgrep -f "less -o filtar_direitos_autorais")
# Verificar se o PID foi encontrado
if [ -n "$less_pid" ]; then
# Encerrar o processo less
kill -9 $less_pid
fi
# Extrair informações desejadas e remover linhas duplicadas
awk '!seen[$0] && /Copyright/ {match($0, /[0-9]{4}[^<]+<[^>]+>/); print substr($0, RSTART, RLENGTH)}' filtar_direitos_autorais > direitos_autorais_sem_duplicacao
awk 'NF' direitos_autorais_sem_duplicacao > direitos_autorais_sem_duplicacao_sem_linhas_em_branco
# Eliminar duplicatas e salvar em um novo arquivo
sort direitos_autorais_sem_duplicacao_sem_linhas_em_branco | uniq -c | sort -nr | head -n 1 | awk '{print $4, $5}' > so_upstream
sort -u direitos_autorais_sem_duplicacao_sem_linhas_em_branco > so_autores
sed -i 's/| //g' so_autores
sed -i 's/,//g' so_autores
awk -F' ' '{
email = $2
if (!seen[email] || substr($1, 1, 4) < substr(seen[email], 1, 4)) {
seen[email] = $0
}
}
END {
for (email in seen) {
print seen[email]
}
}' so_autores > autores_finais
sed -i 's/\//-/g' autores_finais
sed -i -e 's/^[0-9]\{4\}-[0-9]\{4\} //' autores_finais
sed -i -e 's/^[0-9]\{4\} //' autores_finais
sed -n -e '/<years> <put author'\''s name and email here>/,/<years> <likewise for another author>/{ /<years> <put author'\''s name and email here>/r autores_finais' -e '}; p' copyright > copyright.tmp
mv copyright.tmp copyright
sed -i '/<years> <put author'\''s name and email here>/d; /<years> <likewise for another author>/d' copyright
sed -i '/# Please/{x;d;};x' copyright
sed -i '/^# Please/,+8 d' copyright
sed -i -e "/Source:/s|Source: <url://example.com>|Source: $dominio_repo/$owner/$project|" copyright
sed -i -e "/Upstream-Contact:/s|<preferred name and address to reach the upstream project>|$(cat so_upstream)|" copyright
sed -i '1{/^$/d;}' copyright
rm -f filtar_direitos_autorais
rm -f direitos_autorais_sem_duplicacao
rm -f direitos_autorais_sem_duplicacao_sem_linhas_em_branco
rm -f so_autores
rm -f autores_finais
......@@ -116,14 +116,14 @@ Enum Tools
:alt: GitHub top language
.. |commits-since| github-shield::
:commits-since: v0.11.0
:commits-since: v0.12.0
:alt: GitHub commits since tagged version
.. |commits-latest| github-shield::
:last-commit:
:alt: GitHub last commit
.. |maintained| maintained-shield:: 2023
.. |maintained| maintained-shield:: 2024
:alt: Maintenance
.. |pypi-downloads| pypi-shield::
......
......@@ -4,7 +4,7 @@ domdf-sphinx-theme>=0.3.0
extras-require>=0.5.0
html-section>=0.3.0
seed-intersphinx-mapping>=1.2.2
sphinx<3.5.0,>=3.0.3
sphinx>=3.0.3
sphinx-copybutton>=0.2.12
sphinx-debuginfo>=0.2.2
sphinx-licenseinfo>=0.3.1
......
......@@ -8,16 +8,16 @@ Tools to expand Python's enum module.
# Copyright (c) 2020 Dominic Davis-Foster <dominic@davis-foster.co.uk>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
......@@ -33,7 +33,7 @@ from enum_tools.documentation import DocumentedEnum, document_enum, document_mem
__author__: str = "Dominic Davis-Foster"
__copyright__: str = "2020 Dominic Davis-Foster"
__license__: str = "GNU Lesser General Public License v3 or later (LGPLv3+)"
__version__: str = "0.11.0"
__version__: str = "0.12.0"
__email__: str = "dominic@davis-foster.co.uk"
__all__ = [
......
......@@ -8,16 +8,16 @@ A Sphinx directive for documenting :class:`Enums <enum.Enum>` in Python.
# Copyright (c) 2020-2022 Dominic Davis-Foster <dominic@davis-foster.co.uk>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
......
......@@ -8,16 +8,16 @@ Custom subclasses of :class:`enum.Enum` and :class:`enum.Flag`.
# Copyright (c) 2020-2021 Dominic Davis-Foster <dominic@davis-foster.co.uk>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
......
......@@ -8,16 +8,16 @@ Decorators to add docstrings to enum members from comments.
# Copyright (c) 2020-2021 Dominic Davis-Foster <dominic@davis-foster.co.uk>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment