Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-08 Thread Daniel Mack
On 07/08/2015 03:43 PM, Michael Biebl wrote:
> 2015-07-08 21:17 GMT+02:00 Zbigniew Jędrzejewski-Szmek :
>> On Tue, Jul 07, 2015 at 03:49:13PM +0200, Michael Biebl wrote:
>>> 2015-07-07 2:51 GMT+02:00 Zbigniew Jędrzejewski-Szmek :
 Comments, patches, pull requests — especially for documentation and tests —
 are very much welcome.
>>>
>>> Regarding the documentation: I failed to generate the documentation
>>> with sphinx since it didn't find the python modules.
>>> Do you have some instructions how this can be done.
>>
>> Hi,
>> this is now fixed in git.
>>
>> make sphinx-html
>> or
>> make sphinx-html PYTHON=python3.4 SPHINX_BUILD=sphinx-build-3.4
>>
>> build the docs (although the result should be indistinguishable between
>> python versions).
> 
> Thanks a lot.
> 
> FYI: https://packages.qa.debian.org/p/python-systemd.html

The PR that removes systemd-python from upstream is also merged now:

  https://github.com/systemd/systemd/commit/b9fd7bb60


Thanks,
Daniel

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-08 Thread Michael Biebl
2015-07-08 21:17 GMT+02:00 Zbigniew Jędrzejewski-Szmek :
> On Tue, Jul 07, 2015 at 03:49:13PM +0200, Michael Biebl wrote:
>> 2015-07-07 2:51 GMT+02:00 Zbigniew Jędrzejewski-Szmek :
>> > Comments, patches, pull requests — especially for documentation and tests —
>> > are very much welcome.
>>
>> Regarding the documentation: I failed to generate the documentation
>> with sphinx since it didn't find the python modules.
>> Do you have some instructions how this can be done.
>
> Hi,
> this is now fixed in git.
>
> make sphinx-html
> or
> make sphinx-html PYTHON=python3.4 SPHINX_BUILD=sphinx-build-3.4
>
> build the docs (although the result should be indistinguishable between
> python versions).

Thanks a lot.

FYI: https://packages.qa.debian.org/p/python-systemd.html


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-08 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jul 07, 2015 at 03:49:13PM +0200, Michael Biebl wrote:
> 2015-07-07 2:51 GMT+02:00 Zbigniew Jędrzejewski-Szmek :
> > Comments, patches, pull requests — especially for documentation and tests —
> > are very much welcome.
> 
> Regarding the documentation: I failed to generate the documentation
> with sphinx since it didn't find the python modules.
> Do you have some instructions how this can be done.

Hi,
this is now fixed in git.

make sphinx-html
or
make sphinx-html PYTHON=python3.4 SPHINX_BUILD=sphinx-build-3.4

build the docs (although the result should be indistinguishable between
python versions).

Zbyszek
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-07 Thread Stefan Tatschner
On Di, 2015-07-07 at 15:49 +0200, Michael Biebl wrote:
> Regarding the documentation: I failed to generate the documentation
> with sphinx since it didn't find the python modules.
> Do you have some instructions how this can be done.

You could e. g. install the module (with pip in edit mode) in a
virtualenv[1] using virtualenvwrapper[2]:

  $ mkvirtualenv python-systemd
  $ git clone https://github.com/systemd/python-systemd.git
  $ cd python-systemd
  $ pip install -e .

Stefan

[1]: https://pypi.python.org/pypi/virtualenv
[2]: http://virtualenvwrapper.readthedocs.org/en/latest/index.html
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-07 Thread Michael Biebl
2015-07-07 2:51 GMT+02:00 Zbigniew Jędrzejewski-Szmek :
> Comments, patches, pull requests — especially for documentation and tests —
> are very much welcome.

Regarding the documentation: I failed to generate the documentation
with sphinx since it didn't find the python modules.
Do you have some instructions how this can be done.

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-07 Thread Michael Biebl
2015-07-07 4:50 GMT+02:00 Zbigniew Jędrzejewski-Szmek :
> On Tue, Jul 07, 2015 at 04:11:28AM +0200, Michael Biebl wrote:
>> Do you intend to publish release tarballs somewhere or should we get one from
>> https://github.com/systemd/python-systemd/releases ?
> I was hoping that the signed tags and tarballs created by github would
> be enough. I built the Fedora package from that. I didn't see a way to
> upload a tarball to github. I think they removed the ability
> to do that a while back. But if it is necessary, I can publish
> the tarballs somewhere.

No, personally the tarballs created by github are fine with me. Just
wanted to be sure this is the canonical location from now on.


>> Btw, does anyone know if those release tarballs are generated by
>> github on the fly and might have different md5sums?
> I seem to get identical blob every time.

Ok, I see.

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-06 Thread Mantas Mikulėnas
On Tue, Jul 7, 2015 at 5:11 AM, Michael Biebl  wrote:

> Hi!
>
> 2015-07-07 2:51 GMT+02:00 Zbigniew Jędrzejewski-Szmek :
> > The new separated package is at
> https://github.com/systemd/python-systemd
>
> ..
>
> > Following the example of libudev, I bumped the version of the separated
> > package to 230, so that it is guaranteed to stay larger than the last
> > version of systemd still containing python-systemd.
>
>
> Do you intend to publish release tarballs somewhere or should we get one
> from
> https://github.com/systemd/python-systemd/releases ?
>
> Btw, does anyone know if those release tarballs are generated by
> github on the fly and might have different md5sums?
>

They should be identical regardless – git-archive tries to generate
reproducible archives (assuming same parameters), and afaik that's also
what GitHub uses.

-- 
Mantas Mikulėnas 
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-06 Thread Daurnimator
On 7 July 2015 at 12:50, Zbigniew Jędrzejewski-Szmek  wrote:
>> Do you intend to publish release tarballs somewhere or should we get one from
>> https://github.com/systemd/python-systemd/releases ?
> I was hoping that the signed tags and tarballs created by github would
> be enough. I built the Fedora package from that. I didn't see a way to
> upload a tarball to github. I think they removed the ability
> to do that a while back. But if it is necessary, I can publish
> the tarballs somewhere.

You can do a manual release on github:
https://github.com/systemd/systemd/releases/new

Also see https://developer.github.com/v3/repos/releases/#upload-a-release-asset
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-06 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jul 07, 2015 at 04:11:28AM +0200, Michael Biebl wrote:
> Hi!
> 
> 2015-07-07 2:51 GMT+02:00 Zbigniew Jędrzejewski-Szmek :
> > The new separated package is at https://github.com/systemd/python-systemd
> 
> ..
> 
> > Following the example of libudev, I bumped the version of the separated
> > package to 230, so that it is guaranteed to stay larger than the last
> > version of systemd still containing python-systemd.
> 
> 
> Do you intend to publish release tarballs somewhere or should we get one from
> https://github.com/systemd/python-systemd/releases ?
I was hoping that the signed tags and tarballs created by github would
be enough. I built the Fedora package from that. I didn't see a way to
upload a tarball to github. I think they removed the ability
to do that a while back. But if it is necessary, I can publish
the tarballs somewhere.

> Btw, does anyone know if those release tarballs are generated by
> github on the fly and might have different md5sums?
I seem to get identical blob every time.

Zbyszek
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-06 Thread Michael Biebl
Hi!

2015-07-07 2:51 GMT+02:00 Zbigniew Jędrzejewski-Szmek :
> The new separated package is at https://github.com/systemd/python-systemd

..

> Following the example of libudev, I bumped the version of the separated
> package to 230, so that it is guaranteed to stay larger than the last
> version of systemd still containing python-systemd.


Do you intend to publish release tarballs somewhere or should we get one from
https://github.com/systemd/python-systemd/releases ?

Btw, does anyone know if those release tarballs are generated by
github on the fly and might have different md5sums?


Regards,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-06 Thread Daniel Mack
On 07/06/2015 08:51 PM, Zbigniew Jędrzejewski-Szmek wrote:
> I've been asked to split the python-systemd out of the main systemd tree.
> This is the set of python modules which wrap libsystemd. They were
> originally started as a separate project by David Strauss. By splitting
> them out we return to the origins. In systemd we also use python to
> build parts of documentation, and in tests. That use doesn't change.
> 
> The new separated package is at https://github.com/systemd/python-systemd
> and the pull request for removal from systemd is at
> https://github.com/systemd/systemd/pull/501 .
> The removal should be merged after the next release, to give a bit
> of time for distributions to create the new package.

Nice. I added a paragraph to NEWS now to give packagers a heads-up.


Thanks,
Daniel

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-06 Thread Zbigniew Jędrzejewski-Szmek
I've been asked to split the python-systemd out of the main systemd tree.
This is the set of python modules which wrap libsystemd. They were
originally started as a separate project by David Strauss. By splitting
them out we return to the origins. In systemd we also use python to
build parts of documentation, and in tests. That use doesn't change.

The new separated package is at https://github.com/systemd/python-systemd
and the pull request for removal from systemd is at
https://github.com/systemd/systemd/pull/501 .
The removal should be merged after the next release, to give a bit
of time for distributions to create the new package.

The motivation for the change is that building python modules requires
additional dependencies (python headers and sphinx), which were not used
otherwise. Distributions also had to build systemd twice, once for
Python 2 and once for Python 3. python-systemd mostly uses the public
API of libsystemd anyway, so splitting it out does not require
duplicating any significant functionality.

Following the example of libudev, I bumped the version of the separated
package to 230, so that it is guaranteed to stay larger than the last
version of systemd still containing python-systemd.
Distributions will have to add a new package. For Fedora this
is almost done (https://bugzilla.redhat.com/show_bug.cgi?id=1240113).

Comments, patches, pull requests — especially for documentation and tests —
are very much welcome.

Zbyszek
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel