Skip to content

Commit b827675

Browse files
authored
Merge pull request #40 from nexB/prepare-release
Prepare release
2 parents 9074616 + 56c887b commit b827675

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3477
-3207
lines changed

.github/workflows/docs-ci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI Documentation
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-20.04
8+
9+
strategy:
10+
max-parallel: 4
11+
matrix:
12+
python-version: [3.9]
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Give permission to run scripts
24+
run: chmod +x ./docs/scripts/doc8_style_check.sh
25+
26+
- name: Install Dependencies
27+
run: pip install -e .[docs]
28+
29+
- name: Check Sphinx Documentation build minimally
30+
working-directory: ./docs
31+
run: sphinx-build -E -W source build
32+
33+
- name: Check for documentation style errors
34+
working-directory: ./docs
35+
run: ./scripts/doc8_style_check.sh
36+
37+

.github/workflows/pypi-release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release library as a PyPI wheel and sdist on GH release creation
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build-and-publish-to-pypi:
9+
name: Build and publish library to PyPI
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up Python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.9
17+
- name: Install pypa/build
18+
run: python -m pip install build --user
19+
- name: Build a binary wheel and a source tarball
20+
run: python -m build --sdist --wheel --outdir dist/
21+
.
22+
- name: Publish distribution to PyPI
23+
if: startsWith(github.ref, 'refs/tags')
24+
uses: pypa/gh-action-pypi-publish@master
25+
with:
26+
password: ${{ secrets.PYPI_API_TOKEN }}
27+

.travis.yml

-22
This file was deleted.

CHANGELOG.rst

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
Changelog
22
=========
33

4-
v30.0.0 (next)
4+
v31.0.0
5+
--------
6+
7+
- Do not install patch.py by default. Instead this is now an extra
8+
9+
10+
v30.0.0
511
--------
612

713
- Update to the latest skeleton. The virtualenv is now created under the venv

CODE_OF_CONDUCT.rst

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
Contributor Covenant Code of Conduct
2+
====================================
3+
4+
Our Pledge
5+
----------
6+
7+
In the interest of fostering an open and welcoming environment, we as
8+
contributors and maintainers pledge to making participation in our
9+
project and our community a harassment-free experience for everyone,
10+
regardless of age, body size, disability, ethnicity, gender identity and
11+
expression, level of experience, education, socio-economic status,
12+
nationality, personal appearance, race, religion, or sexual identity and
13+
orientation.
14+
15+
Our Standards
16+
-------------
17+
18+
Examples of behavior that contributes to creating a positive environment
19+
include:
20+
21+
- Using welcoming and inclusive language
22+
- Being respectful of differing viewpoints and experiences
23+
- Gracefully accepting constructive criticism
24+
- Focusing on what is best for the community
25+
- Showing empathy towards other community members
26+
27+
Examples of unacceptable behavior by participants include:
28+
29+
- The use of sexualized language or imagery and unwelcome sexual
30+
attention or advances
31+
- Trolling, insulting/derogatory comments, and personal or political
32+
attacks
33+
- Public or private harassment
34+
- Publishing others’ private information, such as a physical or
35+
electronic address, without explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
Our Responsibilities
40+
--------------------
41+
42+
Project maintainers are responsible for clarifying the standards of
43+
acceptable behavior and are expected to take appropriate and fair
44+
corrective action in response to any instances of unacceptable behavior.
45+
46+
Project maintainers have the right and responsibility to remove, edit,
47+
or reject comments, commits, code, wiki edits, issues, and other
48+
contributions that are not aligned to this Code of Conduct, or to ban
49+
temporarily or permanently any contributor for other behaviors that they
50+
deem inappropriate, threatening, offensive, or harmful.
51+
52+
Scope
53+
-----
54+
55+
This Code of Conduct applies both within project spaces and in public
56+
spaces when an individual is representing the project or its community.
57+
Examples of representing a project or community include using an
58+
official project e-mail address, posting via an official social media
59+
account, or acting as an appointed representative at an online or
60+
offline event. Representation of a project may be further defined and
61+
clarified by project maintainers.
62+
63+
Enforcement
64+
-----------
65+
66+
Instances of abusive, harassing, or otherwise unacceptable behavior may
67+
be reported by contacting the project team at pombredanne@gmail.com
68+
or on the Gitter chat channel at https://gitter.im/aboutcode-org/discuss .
69+
All complaints will be reviewed and investigated and will result in a
70+
response that is deemed necessary and appropriate to the circumstances.
71+
The project team is obligated to maintain confidentiality with regard to
72+
the reporter of an incident. Further details of specific enforcement
73+
policies may be posted separately.
74+
75+
Project maintainers who do not follow or enforce the Code of Conduct in
76+
good faith may face temporary or permanent repercussions as determined
77+
by other members of the project’s leadership.
78+
79+
Attribution
80+
-----------
81+
82+
This Code of Conduct is adapted from the `Contributor Covenant`_ ,
83+
version 1.4, available at
84+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
85+
86+
.. _Contributor Covenant: https://www.contributor-covenant.org

MANIFEST.in

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ include *.rst
99
include setup.*
1010
include configure*
1111
include requirements*
12-
include .git*
12+
include .giti*
13+
14+
include extractcode*
1315

1416
global-exclude *.py[co] __pycache__ *.*~
1517

README.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
============
12
ExtractCode
2-
===========
3+
============
34

45
- license: Apache-2.0
56
- copyright: copyright (c) nexB. Inc. and others
@@ -21,7 +22,7 @@ Why another extractor?
2122

2223
**it will extract!**
2324

24-
ExtractCode will extract things where other extractors may fail.
25+
ExtractCode will extract things where other archive and compressed file extractors may fail.
2526

2627
ExtractCode supports one of largest number of archive formats listed in the
2728
long `List of supported archive formats`_ found at the bottom of this document.

appveyor.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
################################################################################
3+
# We use Appveyor to run minimal smoke tests suites on Pythons 3.x
4+
# on Windows 64 bits
5+
################################################################################
6+
environment:
7+
matrix:
8+
- PYTHON: "C:\\Python36-x64"
9+
# - PYTHON: "C:\\Python37-x64"
10+
# - PYTHON: "C:\\Python38-x64"
11+
# - PYTHON: "C:\\Python39-x64"
12+
13+
14+
build: off
15+
16+
17+
test_script:
18+
- python -c "import sys;print(sys.getdefaultencoding())"
19+
- cmd: "set PYTHON_EXECUTABLE=%PYTHON%\\python.exe && configure --dev && venv\\Scripts\\pytest -vvs tests"

azure-pipelines.yml

+14-22
Original file line numberDiff line numberDiff line change
@@ -7,58 +7,50 @@
77

88
jobs:
99

10-
- template: etc/ci/azure-posix.yml
11-
parameters:
12-
job_name: ubuntu16_cpython
13-
image_name: ubuntu-16.04
14-
python_versions: ['3.6', '3.7', '3.8', '3.9']
15-
test_suites:
16-
all: sudo chmod 0644 /boot/vmlinuz-* && sudo apt install libguestfs-tools && tmp/bin/pytest -vvs
17-
1810
- template: etc/ci/azure-posix.yml
1911
parameters:
2012
job_name: ubuntu18_cpython
2113
image_name: ubuntu-18.04
22-
python_versions: ['3.6', '3.7', '3.8', '3.9']
14+
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
2315
test_suites:
2416
all: sudo chmod 0644 /boot/vmlinuz-* && sudo apt install libguestfs-tools && venv/bin/pytest -n 2 -vvs
2517

2618
- template: etc/ci/azure-posix.yml
2719
parameters:
2820
job_name: ubuntu20_cpython
2921
image_name: ubuntu-20.04
30-
python_versions: ['3.6', '3.7', '3.8', '3.9']
22+
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
3123
test_suites:
3224
all: sudo chmod 0644 /boot/vmlinuz-* && sudo apt install libguestfs-tools && venv/bin/pytest -n 2 -vvs
3325

3426
- template: etc/ci/azure-posix.yml
3527
parameters:
36-
job_name: macos1014_cpython
37-
image_name: macos-10.14
38-
python_versions: ['3.6', '3.7', '3.8', '3.9']
28+
job_name: macos1015_cpython
29+
image_name: macos-10.15
30+
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
3931
test_suites:
4032
all: venv/bin/pytest -n 2 -vvs
4133

4234
- template: etc/ci/azure-posix.yml
4335
parameters:
44-
job_name: macos1015_cpython
45-
image_name: macos-10.15
46-
python_versions: ['3.6', '3.7', '3.8', '3.9']
36+
job_name: macos11_cpython
37+
image_name: macos-11
38+
python_versions: ['3.7', '3.8', '3.9', '3.10']
4739
test_suites:
4840
all: venv/bin/pytest -n 2 -vvs
4941

5042
- template: etc/ci/azure-win.yml
5143
parameters:
52-
job_name: win2016_cpython
53-
image_name: vs2017-win2016
54-
python_versions: ['3.6', '3.7', '3.8', '3.9']
44+
job_name: win2019_cpython
45+
image_name: windows-2019
46+
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
5547
test_suites:
5648
all: venv\Scripts\pytest -n 2 -vvs
5749

5850
- template: etc/ci/azure-win.yml
5951
parameters:
60-
job_name: win2019_cpython
61-
image_name: windows-2019
62-
python_versions: ['3.6', '3.7', '3.8', '3.9']
52+
job_name: win2022_cpython
53+
image_name: windows-2022
54+
python_versions: ['3.7', '3.8', '3.9', '3.10']
6355
test_suites:
6456
all: venv\Scripts\pytest -n 2 -vvs

0 commit comments

Comments
 (0)