Skip to content

Commit af41220

Browse files
committed
Merge branch 'main' of https://github.com/nexb/univers into main
2 parents dd188e4 + 4078ef2 commit af41220

170 files changed

Lines changed: 53503 additions & 0 deletions

File tree

Some content is hidden

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

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore all Git auto CR/LF line endings conversions
2+
* -text
3+
pyproject.toml export-subst

.github/workflows/pypi-release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release library as a PyPI wheel and sdist on tag
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.8
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+

.gitignore

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Python compiled files
2+
*.py[cod]
3+
4+
# virtualenv and other misc bits
5+
*.egg-info
6+
/dist
7+
/build
8+
/bin
9+
/lib
10+
/scripts
11+
/Scripts
12+
/Lib
13+
/pip-selfcheck.json
14+
/tmp
15+
/venv
16+
.Python
17+
/include
18+
/Include
19+
/local
20+
*/local/*
21+
/local/
22+
/share/
23+
/tcl/
24+
/.eggs/
25+
26+
# Installer logs
27+
pip-log.txt
28+
29+
# Unit test / coverage reports
30+
.cache
31+
.coverage
32+
.coverage.*
33+
nosetests.xml
34+
htmlcov
35+
36+
# Translations
37+
*.mo
38+
39+
# IDEs
40+
.project
41+
.pydevproject
42+
.idea
43+
org.eclipse.core.resources.prefs
44+
.vscode
45+
.vs
46+
47+
# Sphinx
48+
docs/_build
49+
docs/bin
50+
docs/build
51+
docs/include
52+
docs/Lib
53+
doc/pyvenv.cfg
54+
pyvenv.cfg
55+
56+
# Various junk and temp files
57+
.DS_Store
58+
*~
59+
.*.sw[po]
60+
.build
61+
.ve
62+
*.bak
63+
/.cache/
64+
65+
# pyenv
66+
/.python-version
67+
/man/
68+
/.pytest_cache/
69+
lib64
70+
tcl
71+
72+
# Ignore Jupyter Notebook related temp files
73+
.ipynb_checkpoints/

.readthedocs.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Where the Sphinx conf.py file is located
9+
sphinx:
10+
configuration: docs/source/conf.py
11+
12+
# Setting the python version and doc build requirements
13+
python:
14+
install:
15+
- method: pip
16+
path: .
17+
extra_requirements:
18+
- docs

AUTHORS.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
The following organizations or individuals have contributed to this repo:
2+
3+
- Shivam Sandbhor @sbs2001
4+
- Philippe Ombredanne @pombredanne
5+
- Hritik Vijay @Hritik14
6+
- Tushar Goel @TG1999
7+
- Keshav Priyadarshi @keshav-space
8+
- Chin-Yeung Li @chinyeungli
9+
- Ayan Sinha Mahapatra @AyanSinhaMahapatra
10+
- Jono Yang @JonoYang
11+
12+
Plus 100+ contributors that created the underlying and bundled version handling
13+
utilities.

CHANGELOG.rst

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
Changelog
2+
=========
3+
4+
5+
Version v30.9.2
6+
----------------
7+
8+
- Fix unhashable error in GemVersion.
9+
10+
11+
Version v30.9.1
12+
----------------
13+
14+
- Add invert function to VersionRange.
15+
16+
17+
Version v30.9.0
18+
----------------
19+
20+
- Change type of archlinux version ranges to alpm.
21+
22+
23+
Version v30.8.0
24+
----------------
25+
26+
- Fix npm version ranges
27+
28+
29+
Version v30.7.0
30+
----------------
31+
32+
- Add composer and golang versions and also support gitlab native ranges for them
33+
34+
35+
Version v30.6.0
36+
----------------
37+
38+
- Add support for gitlab in pypi, npm, gem version ranges
39+
- Subclass semver for nginx
40+
41+
42+
Version v30.5.1
43+
----------------
44+
45+
- Fix Nuget string representation
46+
- Test sorting of all the OpenSSL versions ever released
47+
48+
49+
Version v30.5.0
50+
----------------
51+
52+
- Add version range support for maven
53+
- Remove unsupported characters in Pypi from_native implementation
54+
- Add Nuget Version support in Univers
55+
56+
57+
Version v30.4.0
58+
----------------
59+
60+
- Add support for forming VersionRange from a list of versions.Thank you
61+
to Keshav Priyadarshi @keshav-space for this.
62+
63+
64+
Version v30.3.1
65+
----------------
66+
67+
- Change equal comparator for github native ranges
68+
69+
70+
Version v30.3.0
71+
----------------
72+
73+
- New support for native GitHub version ranges. GitHub native version range is different from
74+
other native ranges. For example:
75+
Maven native version range looks like:
76+
`[1.0.0,1.0.1)`
77+
Github native version range looks like:
78+
`>= 1.0.0, < 1.0.1`
79+
80+
81+
Version v30.2.0
82+
----------------
83+
84+
- New support for OpenSSL version(s). These are peculiar because there are two
85+
epochs in the versioning: the versioning scheme is custom before version 3
86+
and is based on semver from version 3 onwards. Thank you to Keshav Priyadarshi
87+
@keshav-space for this.
88+
89+
90+
Version v30.1.0
91+
-----------------
92+
93+
- New support for Alpine package versions. These are based loosely on Gentoo
94+
versions with some variations. We do not support all the version styles yet.
95+
The unit tests are based on the upstream apk-tools tests and this brings in
96+
700 new unit tests.
97+
- Fix handling of caret and tilde version in npm version ranges.
98+
- Enable automated build of wheels on release
99+
- Adopt latest skeleton, droping support for tests on macOS 10.14
100+
101+
102+
Version v30.0.0
103+
-----------------
104+
105+
- Implement the new "vers" spec. This is a major incomplatible change.
106+
- Add support for nginx version scheme
107+
- Switching back to semver
108+
- Improve origin and license documentation
109+
- Add tests for carets in RPMs
110+
- Format, streamline and refactor code
111+
- Improve testing
112+
113+
114+
Version v21.4.9
115+
-----------------
116+
117+
- Add support Gentoo style versions.
118+
119+
120+
Version v21.4.8
121+
-----------------
122+
123+
- Add support for more package types.
124+
- Version classes are now hashable and frozen
125+
126+
127+
Version v21.4.6
128+
-----------------
129+
130+
- Initial Release

MANIFEST.in

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
graft src
2+
3+
include *.LICENSE
4+
include NOTICE
5+
include *.ABOUT
6+
include *.toml
7+
include *.yml
8+
include *.rst
9+
include setup.*
10+
include configure*
11+
include requirements*
12+
include .git*
13+
14+
global-exclude *.py[co] __pycache__ *.*~
15+

NOTICE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# Copyright (c) nexB Inc. and others.
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# Visit https://aboutcode.org and https://github.com/nexB/vulnerablecode
6+
# for support and download.
7+
#
8+
# Licensed under the Apache License, Version 2.0 (the "License");
9+
# you may not use this file except in compliance with the License.
10+
# You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
#

0 commit comments

Comments
 (0)