1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00
Commit Graph

46 Commits

Author SHA1 Message Date
8cdd4abea7 Move python package metadata from setup.py to setup.cfg 2022-08-24 10:05:49 +02:00
be8a5268a8 Replace unmaintained cmdln.py with a custom code
Cmdln.py is unmaintained for years and uses deprecated optparse.
Let's replace it with a simpler custom code. Also remove code
that generates man page, we'll replace it with a 3rd party tool.
2022-08-12 10:05:59 +02:00
6c602f23e8 Create a missing directory when setup.py is called with --build-lib 2022-08-05 13:19:12 +02:00
Björn Bidar
4dc27bd374 Add python-rpm extras_require for rpm signature verification
The dependency was added in 8fb9669ae4 but not specified.
2022-08-01 08:51:23 +02:00
feb53212dd Modernize code with pyupgrade
pyupgrade --keep-percent-format --py36-plus `find -name '*.py'`
2022-07-28 19:14:12 +02:00
229913a77f Clean imports up, drop python 2 fallbacks 2022-07-28 13:17:43 +02:00
6397a6070d Replace osc-wrapper.py with entry_points. 2022-07-28 09:46:34 +02:00
93bc0e4731 Switch http_request() to urllib3
Use connection pools for better performance.
Replace M2Crypto with cryptography and urllib3's ssl context.
2022-07-27 11:15:21 +02:00
3da0a9a9ba Improve README, rename it to README.md 2022-06-21 13:40:13 +02:00
715a30f3f3 Fix release 0.179.0 - make sphinx optional in setup.py 2022-06-02 17:18:52 +02:00
1715163166
Merge pull request #994 from dmach/update-sphinx-configuration
Update Sphinx configuration
2022-06-02 10:09:38 +02:00
25a6e04e2b Run tests via calling 'setup.py test' 2022-03-29 14:01:55 +02:00
a06c30a963 Create './setup.py build_doc' cmd according to the Sphinx best practices
Renaming 'build_docs' to 'build_doc' is probably ok as
the command was broken and couldn't be used by anyone.
2022-03-16 15:19:24 +01:00
Daniel Mach
09810dd2d7
Merge pull request #843 from zilti/master
Make python shebang explicit for python3 to allow building for Mageia Cauldron
2022-03-15 10:25:33 +01:00
171b546379 Remove Windows from the supported operating systems
The ':' character is used as a separator in Open Build Service
and constantly appears in directory names after running osc commands.
Windows do not support ':' as a valid character on file system.
This breaks not only osc but also basic commands such
as 'git clone' on a project that contains colons in paths.

That's why we decided to make osc unsupported on Windows.
2022-02-17 13:34:03 +01:00
3b0c660359 setup.py: Add py3.10 and py3.11 to the classifiers 2022-01-26 15:04:24 +01:00
6ed59860f0 setup.py: Fix license 2022-01-26 15:03:23 +01:00
Daniel Ziltener
835e035799
Make python3 explicit 2020-09-19 23:28:30 +02:00
Andreas Hasenkopf
f817db1053 Automatic package publication via Travis CI
* `.travis.yml`
  - Reformatted for easier reading
  - Used `before_*` statements instead of script chains
  - Publish only source packages
* `setup.py`
  - Reformatted for easier reading
  - Use README contents for `long_description` to have a nice description on PyPI
  - Added classifiers
  - Added explicit package dependencies
* fixes #658
* fixes #708
2020-04-06 09:32:01 +02:00
lethliel
36ab05c222 [python3] setup.py now supports python3 2018-12-13 13:15:31 +01:00
Tomáš Čech
b37452157b remove osc_hotshot.py
osc_hotshot.py is long time untouched and broken thus I assume it is
safe to be removed

fixes issue #400
2018-04-10 06:34:07 +02:00
Marcus Huewe
fdb773bbc9 setup.py: make build_docs' base class more explicit
distutils.command.build.Command is distutils.core.Command.
2016-09-16 16:09:59 +02:00
Marcus Huewe
7849e23eb5 setup.py: take potential "--build-base=<dir>" option into account
For instance, if osc is build and installed like this:
python setup.py build --build-base=<dir> ... install ...

The patch is based on Roman Neuhauser's (neuhauser@sigpipe.cz)
PR (see https://github.com/openSUSE/osc/pull/229).
2016-09-16 16:04:25 +02:00
cav71
383f586f28 sphinx documentation, initial commit 2016-02-15 22:36:50 +00:00
Dmitry Marakasov
8cd08c352b Add FreeBSD to the list of platforms 2013-02-06 03:43:36 +04:00
Sascha Peilicke
d2592fdd25 Adjust git urls after github.com migration. 2011-10-20 10:38:09 -08:00
Sascha Peilicke
438569f821 PEP8-ified parts of the code.
Exchange individual return statements with a finally statement in the
big try/except statement in babysitter.py. If you return a different
value in the 'except' clause, it takes precedency over the 'finally'
clause (finally is executed before returning, naturally).
2011-07-08 16:09:44 +02:00
Petr Uzel
197c10f661 Return argument to do_man back
Revert a part of b3c5204, the do_main has to have at least one
argument, unless following exception will appear

osc.cmdln.CmdlnError: incorrect argcount for do_man(): takes 1, must
take 2 for 'argv' signature or 3+ for 'opts' signature

Signed-off-by: Petr Uzel <puzel@suse.cz>
Signed-off-by: Michal Vyskocil <mvyskocil@suse.cz>
2010-12-22 13:29:52 +01:00
Henne Vogelsang
98aa12c9a3 fix links that point into the wiki
Signed-off-by: Henne Vogelsang <hvogel@opensuse.org>
2010-07-27 17:24:05 +02:00
Danny Kukawka
b3c5204b59 fixed serveral warnings from pychecker.py
Fixed serveral warnings from pychecker.py like such:
- Parameter ($) not used
- Local variable ($) not used

Including fixes like:
- remove not needed imports
- don't read apiurl in core.py from config if already available via
  function parameter
- delPerson(): check for user as e.g. in addPerson()
2010-07-26 16:46:21 +02:00
Larry Gilbert
829d27d606 Update source code repository references 2010-02-06 14:45:24 -08:00
Pavol Rusnak
121b20c63c more fixes for Windows port 2009-05-15 11:40:50 +00:00
Pavol Rusnak
4996e49f59 optional support for py2exe
(inspired by http://viewsvn.cihar.com/viewvc.cgi/wammu/trunk/setup.py?view=markup)
2009-05-14 15:49:54 +00:00
Marcus Hüwe
c3405ae489 - fixed manpage generation: in build environments like the obs we cannot call 'osccli.main(argv = ['osc','man'])' because osc would except a config file etc.
- enabled manpage generation again
2009-05-10 10:42:36 +00:00
Martin Mohring
aa9f93b851 - fixed: until its known what these lines do, fix code back to a working state 2009-05-09 16:48:36 +00:00
Marcus Hüwe
1bb63e4ab7 - fixed setup.py
- compress manpage
2009-05-09 14:16:18 +00:00
Michal Cihar
427445a24d Automatically generate and install man page (bnc#471888). 2009-05-06 11:47:53 +00:00
Michal Cihar
0d27064a28 Add some metainformation to setup.py and also include correct version
there (it is later used in generated egg file).
2009-05-06 09:33:18 +00:00
Marcus Hüwe
151dc92e21 - install the util dir 2009-03-24 19:12:39 +00:00
Dr. Peter Poeml
be4f2b031f Putting names at the top of files is is not recommended. Collective wisdom for
fostering open source contributions says that it can discourage contribution by
conveying a false sense of "code ownership". Marking territory is negatively
affecting collaboration.  See http://www.youtube.com/watch?v=ZSFDm3UYkeE
2009-03-02 14:03:06 +00:00
Dr. Peter Poeml
20a13e7b3b - bump version (0.7)
- initial support for local builds (subcommand 'build')
2006-07-14 17:39:46 +00:00
Dr. Peter Poeml
537d6b62cc version 0.6 2006-05-30 10:31:25 +00:00
Dr. Peter Poeml
aa36c25505 - add 'help' subcommand (and add help :-)
- make all subcommands functions -- so they can be used from outside (they
  still print directly their output; they could become iterators later)
- deprecate 'init' subcommand
- 0.5
2006-05-23 13:48:58 +00:00
Dr. Peter Poeml
432252aef1 increase version in setup.py as well 2006-05-22 14:15:17 +00:00
Dr. Peter Poeml
4b83218cf6 0.3
status: 
- use new file metadata which provides checksum, size and mtime 
- don't list unmodified files
- fix some conditions where status was too stupid so far
update: 
- much faster now, since only new or changed files are downloaded
- print revision number
checkout:
- mark project directory as such (to be used later)
diff:
- faster, since 'status' is faster
- work against local copy
checkin: 
- update package metadata from specfile 
- fix argument handling 
add: 
- ignore .osc and other files
other changes:
- sanitize argument handling, so most commands can work with
  arbitrary files/directories as arguments (work is always done per package)
- add history command (doesn't seem to be working yet)
- on first usage, ask for username password on first usage, 
  and store them in .oscrc (.netrc can still be used)
2006-05-19 20:13:29 +00:00
Dr. Peter Poeml
aaa41561be - reorganize source to build a python module
- add setup.py
- add osc-wrapper.py as a wrapper script, so the module can be used when
  installed in the system as well as in the uninstalled source directory
2006-05-10 14:21:51 +00:00