Commit Graph

42 Commits

Author SHA1 Message Date
Pierre LALET 0e1b920682 setup: add scapy.arch.bpf module 2016-12-03 17:25:59 +01:00
Pierre LALET b2a7a54a35 Remove support for Python 2.5 to clean the code
- update (part of) the documentation
    - some URLs for Windows need to be updated
  - update classifiers in setup.py
  - remove `from __future__ import with_statement`
  - use `{k: v for ...}` instead of `dict((k, v) for ...)`
  - remove hacks for `gcd()` and `binrepr()` implementations
  - use class decorators
  - remove Python 2.6 Travis-CI tests
2016-10-19 20:02:59 +02:00
Robin Jarry 4f71027fcd enhance version management
When making an official release of scapy, one must:

* Modify the hardcoded version in setup.py and scapy/config.py
* Create a commit with this change
* Create a git tag with the same version
* Run ./setup.py sdist register upload
* Modify the hardcoded version in setup.py and scapy/config.py again to
  append '-dev'.
* Create another commit with the modified version.
* Push the 3 commits and the tag.

Not only this is tedious but it is also error prone.

Add utility functions in scapy/__init__.py to determine current version.

If git is available (thus running from a git clone), use "git describe" to
get the current version. Write the version for future reference to a
text file (scapy/VERSION).

If git is not available (running from an installed scapy package) read
the version from the scapy/VERSION file.

This changes the release process as follows:

* Create a git tag on the commit where you want to release
* Run ./setup.py sdist register upload
* Push the tag

This allows to have a single place where the version is managed: git.

Note: change the development versions to X.Y.Z.devN where N is the
number of commits after the last tag. This complies to PEP 440
https://www.python.org/dev/peps/pep-0440/#developmental-releases

Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
2016-09-05 13:38:41 +02:00
plorinquer 3ee32c2867 'packages' list in setup.py has been updated. (#224)
* 'packages' list in setup.py has been updated.

* Fix ecdsa ImportError.
2016-07-27 13:27:51 +02:00
Pierre LALET 1b1b687b82 Update setup files for PyPI 2016-01-21 19:40:52 +01:00
Guillaume Valadon 94953c131e Open 2.3.2-dev 2016-01-15 14:13:00 +01:00
Guillaume Valadon 0a9b14b6cd Release 2.3.2 2016-01-15 14:10:59 +01:00
Guillaume Valadon e4de3aa950 Open 2.3.1-dev 2014-12-23 12:33:20 +01:00
Guillaume Valadon b903c51e7e Release 2.3.1 2014-12-23 12:28:10 +01:00
Phil b7d3d93544 Fix ezip sdist format to work with latest distutils 2014-12-18 16:22:04 +01:00
Guillaume Valadon 9811db3005 Open 2.3.0-dev 2014-12-17 13:15:23 +01:00
Guillaume Valadon 2cf360aa1d Release 2.3.0
--HG--
extra : amend_source : 1a8c1e39d81d3c2818f63009124ff99f7dd73a4e
2014-12-17 13:11:58 +01:00
Phil 6bfb92a255 Fixed missing scapy/contrib directory in setup.py 2011-04-02 00:01:10 +02:00
Phil 6f20f116d6 Open 2.2.0-dev 2011-02-28 03:02:47 +01:00
Phil 1e842e1d86 Release 2.2.0 2011-02-28 03:01:25 +01:00
Phil 64618113e8 Merge with scapy-com 2010-08-07 10:55:11 +02:00
Phil e31a851ca7 Fixed executable zip headers offset (zip -A) (ticket #320) 2010-08-06 11:53:22 +02:00
Dirk Loss 0ce149b41a Added (simple) module-level docstrings for all modules 2010-06-16 22:47:55 +02:00
Phil 8d048babb2 Open 2.1.1-dev 2010-04-10 00:37:44 +02:00
Phil 5137444974 Release 2.1.1 2010-04-10 00:36:38 +02:00
Phil f22acdc693 Open 2.1.0-dev 2009-12-14 16:36:32 +01:00
Phil 3d55129b7c Release 2.1.0 2009-12-14 13:19:56 +01:00
Phil 5826cc4793 Added scapy/crypto into setup.py 2009-11-05 11:55:10 +01:00
Dirk Loss 29146dda44 Added batch files to start Scapy and UTScapy on Windows 2009-10-18 14:36:33 +02:00
Phil 8162a4effd Added missing package scapy/arch/windows in setup.py 2009-10-06 00:22:17 +02:00
Phil 71ad2b6422 Made in-place and zip execution work with python2.6 (ticket #195) 2009-04-14 01:16:00 +02:00
Phil 0a4fdb8d72 Open 2.0.1-dev 2009-02-09 13:40:35 +01:00
Phil 3a476617bf Release 2.0.1 2009-02-09 13:39:08 +01:00
Phil f6240c8867 Release 2.0.0.11 beta 2008-12-25 15:13:39 +01:00
Phil 41ffd31c9b Release 2.0.0.10 2008-10-01 18:56:50 +02:00
Phil d3a62bf69f Release 2.0.0.9 2008-09-12 18:24:33 +02:00
Phil adfd4ce0b0 Release 2.0.0.8 2008-09-12 17:53:42 +02:00
Phil 2c581258aa Release 2.0.0.7 2008-08-31 00:43:56 +02:00
Phil e561c8fe4f Release 2.0.0.6 2008-08-28 20:00:50 +02:00
Phil 1ad4bbf397 Splitted arch.py into a submodule and different architectures
--HG--
rename : scapy/arch.py => scapy/arch/__init__.py
rename : scapy/arch.py => scapy/arch/linux.py
rename : scapy/arch.py => scapy/arch/unix.py
2008-08-25 19:34:47 +02:00
Phil 73ff67f970 Release 2.0.0.5 beta 2008-08-17 16:37:27 +02:00
Phil b19f124d6b Release 2.0.0.4 beta 2008-08-11 18:22:26 +02:00
Phil a6b4992bb4 Removed capital letter 2008-08-11 17:42:53 +02:00
Phil ab494228d7 Release 2.0.0.3 beta 2008-08-10 21:21:16 +02:00
Phil d4d86e9cbf Added doc folder and manpage 2008-08-10 18:46:34 +02:00
Phil 1a261739db Release 2.0.0.2 beta 2008-07-29 15:20:43 +02:00
Phil 1123fedadc Added setup.py 2008-07-29 15:18:17 +02:00