Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
13 changed files
with
366 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ python: | |
- method: pip | ||
path: . | ||
extra_requirements: | ||
- dev-release | ||
- dev_release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# This file dictates what goes into a sdist tarball. | ||
# As a release tarball, we want to include: | ||
# - All of the library code. | ||
# - All the useful documentation (but not the super historic stuff) | ||
# - All of the test files, so that the tests can be run on an installed copy. | ||
# We do not want to include: | ||
# - Release management files (e.g. topfiles) | ||
# - Things only useful when running from a source checkout | ||
|
||
# Do not include the old topfiles, or news fragments | ||
recursive-exclude src/twisted *.misc *.bugfix *.doc *.feature *.removal | ||
recursive-exclude src/twisted NEWS README newsfragments | ||
exclude src/twisted/topfiles/CREDITS src/twisted/topfiles/ChangeLog.Old | ||
|
||
# Include NEWS, READMEs, etc | ||
recursive-include docs README | ||
include NEWS.rst README.rst INSTALL.rst CONTRIBUTING.md LICENSE code_of_conduct.md | ||
|
||
# Exclude admin scripts and things only useful when running from a source checkout | ||
exclude codecov.yml | ||
exclude .coveralls.yml | ||
exclude .git-blame-ignore-revs | ||
exclude .readthedocs.yml | ||
exclude .pre-commit-config.yaml | ||
recursive-exclude .circleci * | ||
exclude azure-pipelines | ||
recursive-exclude azure-pipelines * | ||
prune bin | ||
prune admin | ||
prune .github | ||
prune docs/_build | ||
|
||
|
||
# Include marker indicating that we ship type annotations (PEP 561) | ||
include src/twisted/py.typed | ||
|
||
# Include test-running utilities for downstream packagers | ||
include mypy.ini tox.ini .coveragerc | ||
|
||
# Include our docs templates | ||
recursive-include src/twisted/python/_pydoctortemplates *.html | ||
|
||
# Include all modules, even on a Python we're not installing for | ||
recursive-include src/twisted *.py | ||
|
||
# Some tests stuff | ||
recursive-include src/twisted *.pem | ||
recursive-include src/twisted/test *.pem.* | ||
include src/twisted/internet/test/fake_CAs/* | ||
include src/twisted/mail/test/rfc822.message | ||
|
||
# Some extras | ||
recursive-include src/twisted *.glade *.pxi *.h *.c *.bat *.g *.pyx *.zsh *.txt | ||
|
||
# Docs | ||
include docs/fun/lightbulb | ||
recursive-include docs/historic/Quotes * | ||
recursive-include docs *.1 | ||
recursive-include docs *.Quotes | ||
recursive-include docs *.bat | ||
recursive-include docs *.bmp | ||
recursive-include docs *.com | ||
recursive-include docs *.conf | ||
recursive-include docs *.css | ||
recursive-include docs *.dia | ||
recursive-include docs *.gif | ||
recursive-include docs *.glade | ||
recursive-include docs *.html | ||
recursive-include docs *.ico | ||
recursive-include docs *.nib | ||
recursive-include docs *.pem | ||
recursive-include docs *.placeholder | ||
recursive-include docs *.png | ||
recursive-include docs *.py | ||
recursive-include docs *.rpy | ||
recursive-include docs *.rst | ||
recursive-include docs *.rtl | ||
recursive-include docs *.service | ||
recursive-include docs *.socket | ||
recursive-include docs *.svg | ||
recursive-include docs *.tac | ||
recursive-include docs *.tidyrc | ||
recursive-include docs *.tpl | ||
recursive-include docs *.txt | ||
recursive-include docs *.users | ||
recursive-include docs *.xml | ||
recursive-include docs Makefile | ||
recursive-include docs/_static/js *.js | ||
prune docs/_build | ||
|
||
# Don't have the real old historic docs | ||
exclude docs/historic/2003 | ||
recursive-exclude docs/historic/2003 * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
%define name Twisted | ||
%define version SVN-trunk | ||
%define release 1tummy | ||
%define prefix %{_prefix} | ||
%define py_libver 2.3 | ||
|
||
Summary: Twisted is an event-based framework for internet applications. | ||
Name: %{name} | ||
Version: %{version} | ||
Release: %{release} | ||
Source: %{name}-%{version}.tar.bz2 | ||
License: MIT | ||
Group: System/Libraries | ||
URL: http://www.twistedmatrix.com/ | ||
Requires: python >= %{py_libver} | ||
BuildRequires: python-devel | ||
BuildRoot: %{_tmppath}/%{name}-buildroot | ||
Prefix: %{_prefix} | ||
|
||
%description | ||
Twisted is an event-based framework for internet applications. It includes a | ||
web server, a telnet server, a chat server, a news server, a generic client | ||
and server for remote object access, and APIs for creating new protocols and | ||
services. Twisted supports integration of the Tk, GTK+, Qt or wxPython event | ||
loop with its main event loop. The Win32 event loop is also supported, as is | ||
basic support for running servers on top of Jython. | ||
|
||
%package doc | ||
Summary: Twisted documentation and example programs | ||
Group: Development/Python | ||
%description doc | ||
Twisted is an event-based framework for internet applications. | ||
Install Twisted-doc if you need the API documentation and example programs. | ||
|
||
%prep | ||
%setup -n %{name}-%{version} | ||
%build | ||
|
||
%install | ||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT" | ||
mkdir -p "$RPM_BUILD_ROOT" | ||
|
||
python setup.py install --optimize=2 --record=installed-files \ | ||
--root="$RPM_BUILD_ROOT" | ||
|
||
# install man pages | ||
mkdir -p "$RPM_BUILD_ROOT"/%{_mandir}/man1/ | ||
cp -a doc/man/*.1 "$RPM_BUILD_ROOT"/%{_mandir}/man1/ | ||
|
||
%clean | ||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT" | ||
|
||
%files | ||
%defattr(755,root,root) | ||
%doc CREDITS LICENSE README | ||
%{_bindir}/* | ||
%attr(644,-,-) %{_mandir}/man1/* | ||
%{_libdir}/python%{py_libver}/site-packages/twisted/ | ||
|
||
%files doc | ||
%defattr(-,root,root) | ||
%doc doc/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.