Skip to content

Commit ce01a58

Browse files
authored
Merge pull request #1 from secondlife/signal/gh
Update package build methods for 2022
2 parents 85b2b7d + 8557e42 commit ce01a58

Some content is hidden

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

49 files changed

+613
-6283
lines changed

.github/dependabot.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: monthly

.github/release.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
authors:
6+
- dependabot
7+
categories:
8+
- title: Breaking Changes 🛠
9+
labels:
10+
- semver-major
11+
- breaking-change
12+
- title: New Features 🎉
13+
labels:
14+
- semver-minor
15+
- enhancement
16+
- title: Other Changes
17+
labels:
18+
- '*'

.github/workflows/ci.yaml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main, signal/gh]
7+
tags: [v*.*.*]
8+
9+
jobs:
10+
build:
11+
name: Test & Build
12+
strategy:
13+
matrix:
14+
python-version: ['2.7', '3.7', '3.8', '3.10']
15+
runs-on: [ubuntu-20.04]
16+
env:
17+
PYTHON: ${{ matrix.python-version }}
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0 # fetch all history for setuptools_scm to be able to read tags
22+
23+
- uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install python dependencies
28+
run: |
29+
pip install wheel build tox
30+
pip install .
31+
- name: Determine pyenv
32+
id: pyenv
33+
run: echo "value=py$(echo $PYTHON | tr -d '.')" >> $GITHUB_OUTPUT
34+
35+
- name: Run tests
36+
env:
37+
TOXENV: ${{ steps.pyenv.outputs.value }}
38+
run: tox
39+
40+
- name: Build python package
41+
run: python -m build
42+
43+
- name: Upload coverage
44+
uses: codecov/codecov-action@v3
45+
with:
46+
env_vars: PYTHON
47+
fail_ci_if_error: true
48+
files: .coverage.${{ steps.pyenv.outputs.value }}.xml
49+
50+
- uses: actions/upload-artifact@v3
51+
if: matrix.python-version == '2.7' || matrix.python-version == '3.8'
52+
with:
53+
name: dist-${{ matrix.python-version }}
54+
path: dist
55+
56+
publish:
57+
name: Publish to PyPI
58+
needs: build
59+
runs-on: [ubuntu-latest]
60+
if: github.event_name != 'pull_request'
61+
steps:
62+
- uses: actions/download-artifact@v3
63+
64+
- name: Organize files for upload
65+
run: |
66+
mkdir dist
67+
mv dist-3.8/* dist/
68+
mv dist-2.7/*.whl dist/
69+
- name: Test Publish package
70+
uses: pypa/gh-action-pypi-publish@release/v1
71+
with:
72+
password: ${{ secrets.SHARED_PYPI_TEST_TOKEN }}
73+
repository_url: https://test.pypi.org/legacy/
74+
75+
- name: Publish package
76+
uses: pypa/gh-action-pypi-publish@release/v1
77+
if: startsWith(github.event.ref, 'refs/tags/v')
78+
with:
79+
password: ${{ secrets.SHARED_PYPI_TOKEN }}

.gitignore

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
1+
*$py.class
2+
*.bak
3+
*.orig
14
*.pyc
5+
*.so
26
.*.swp
3-
*$py.class
47
.coverage
8+
.eggs/
9+
.pybuild
10+
.tox/
11+
.venv/
12+
MANIFEST
513
build
614
build-stamp
7-
*.so
815
configure-stamp
9-
debian/files
10-
debian/python-llbase
11-
debian/python-llbase.*.debhelper
12-
debian/python-llbase.substvars
13-
debian/python-llbase.debhelper.log
14-
debian/python3-llbase
15-
debian/python3-llbase.*.debhelper
16-
debian/python3-llbase.substvars
17-
debian/python3-llbase.debhelper.log
18-
debian/debhelper-build-stamp
19-
.pybuild
20-
MANIFEST
2116
dist
22-
stage/
23-
.eggs/
24-
.tox/
2517
llbase-*.tar.bz2
2618
llbase.egg-info/
27-
*.orig
28-
*.bak
19+
stage/

BuildParams

Lines changed: 0 additions & 1 deletion
This file was deleted.

INSTALL

Lines changed: 0 additions & 24 deletions
This file was deleted.

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2006 Linden Research, Inc.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

MANIFEST.in

Lines changed: 0 additions & 9 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 75 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
Linden Lab Base
2-
===============
3-
4-
This project manages sources for some utility modules used by Linden
5-
Lab, the creators of [Second Life](https://www.secondlife.com).
6-
7-
This source is available as open source; for details on licensing, see
8-
each file.
1+
# Linden Lab Base
92

3+
Vintage python utility modules used by Linden Lab, the creators of
4+
[Second Life](https://secondlife.com).

0 commit comments

Comments
 (0)